PMD fixes.
This commit is contained in:
parent
12a1655d3f
commit
4877c7ab12
9 changed files with 73 additions and 57 deletions
|
@ -59,7 +59,7 @@ public class Weather2Test extends LocalProperties {
|
|||
|
||||
messages = Weather2.getWeather("London, UK", LocalProperties.getProperty(Weather2.OWM_API_KEY_PROP));
|
||||
assertThat(messages.get(0).getMessage()).as("is UK").contains("London").contains("UK");
|
||||
assertThat(messages.get(messages.size() - 1).getMessage()).as("is City Code").endsWith("4298960");
|
||||
assertThat(messages.get(messages.size() - 1).getMessage()).as("is City Code").endsWith("4517009");
|
||||
|
||||
assertThatThrownBy(
|
||||
() -> Weather2.getWeather("Montpellier, FR", LocalProperties.getProperty(Weather2.OWM_API_KEY_PROP))).as(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue