mirror of
https://github.com/Prominence/openweathermap-java-api.git
synced 2026-07-04 03:36:44 +03:00
Wrote documentation.
This commit is contained in:
+4
-4
@@ -87,9 +87,9 @@ public class WeatherUnitTest {
|
||||
public void whenSetRequestedOn_thenValueIsSet() {
|
||||
final Weather weather = Weather.forValue("state", "desc");
|
||||
final LocalDateTime now = LocalDateTime.now();
|
||||
weather.setRequestedOn(now);
|
||||
weather.setCalculatedOn(now);
|
||||
|
||||
Assert.assertEquals(now, weather.getRequestedOn());
|
||||
Assert.assertEquals(now, weather.getCalculatedOn());
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -244,11 +244,11 @@ public class WeatherUnitTest {
|
||||
Assert.assertTrue(one.equals(two));
|
||||
|
||||
final LocalDateTime now = LocalDateTime.now();
|
||||
one.setRequestedOn(now);
|
||||
one.setCalculatedOn(now);
|
||||
|
||||
Assert.assertFalse(one.equals(two));
|
||||
|
||||
two.setRequestedOn(now);
|
||||
two.setCalculatedOn(now);
|
||||
|
||||
Assert.assertTrue(one.equals(two));
|
||||
|
||||
|
||||
+3
-3
@@ -55,7 +55,7 @@ public class MultipleResultCurrentWeatherIntegrationTest extends ApiTest {
|
||||
Assert.assertNotNull(weather);
|
||||
Assert.assertNotNull(weather.getState());
|
||||
Assert.assertNotNull(weather.getDescription());
|
||||
Assert.assertNotNull(weather.getRequestedOn());
|
||||
Assert.assertNotNull(weather.getCalculatedOn());
|
||||
Assert.assertNotNull(weather.getTemperature());
|
||||
Assert.assertNotNull(weather.getLocation());
|
||||
Assert.assertNotNull(weather.getAtmosphericPressure());
|
||||
@@ -95,7 +95,7 @@ public class MultipleResultCurrentWeatherIntegrationTest extends ApiTest {
|
||||
Assert.assertNotNull(weather);
|
||||
Assert.assertNotNull(weather.getState());
|
||||
Assert.assertNotNull(weather.getDescription());
|
||||
Assert.assertNotNull(weather.getRequestedOn());
|
||||
Assert.assertNotNull(weather.getCalculatedOn());
|
||||
Assert.assertNotNull(weather.getTemperature());
|
||||
Assert.assertNotNull(weather.getLocation());
|
||||
Assert.assertNotNull(weather.getAtmosphericPressure());
|
||||
@@ -150,7 +150,7 @@ public class MultipleResultCurrentWeatherIntegrationTest extends ApiTest {
|
||||
Assert.assertNotNull(weather);
|
||||
Assert.assertNotNull(weather.getState());
|
||||
Assert.assertNotNull(weather.getDescription());
|
||||
Assert.assertNotNull(weather.getRequestedOn());
|
||||
Assert.assertNotNull(weather.getCalculatedOn());
|
||||
Assert.assertNotNull(weather.getTemperature());
|
||||
Assert.assertNotNull(weather.getLocation());
|
||||
Assert.assertNotNull(weather.getAtmosphericPressure());
|
||||
|
||||
+7
-7
@@ -51,7 +51,7 @@ public class SingleResultCurrentWeatherIntegrationTest extends ApiTest {
|
||||
Assert.assertNotNull(weather);
|
||||
Assert.assertNotNull(weather.getState());
|
||||
Assert.assertNotNull(weather.getDescription());
|
||||
Assert.assertNotNull(weather.getRequestedOn());
|
||||
Assert.assertNotNull(weather.getCalculatedOn());
|
||||
Assert.assertNotNull(weather.getTemperature());
|
||||
Assert.assertNotNull(weather.getLocation());
|
||||
Assert.assertNotNull(weather.getAtmosphericPressure());
|
||||
@@ -116,7 +116,7 @@ public class SingleResultCurrentWeatherIntegrationTest extends ApiTest {
|
||||
Assert.assertNotNull(weather);
|
||||
Assert.assertNotNull(weather.getState());
|
||||
Assert.assertNotNull(weather.getDescription());
|
||||
Assert.assertNotNull(weather.getRequestedOn());
|
||||
Assert.assertNotNull(weather.getCalculatedOn());
|
||||
Assert.assertNotNull(weather.getTemperature());
|
||||
Assert.assertNotNull(weather.getLocation());
|
||||
Assert.assertNotNull(weather.getAtmosphericPressure());
|
||||
@@ -181,7 +181,7 @@ public class SingleResultCurrentWeatherIntegrationTest extends ApiTest {
|
||||
Assert.assertNotNull(weather);
|
||||
Assert.assertNotNull(weather.getState());
|
||||
Assert.assertNotNull(weather.getDescription());
|
||||
Assert.assertNotNull(weather.getRequestedOn());
|
||||
Assert.assertNotNull(weather.getCalculatedOn());
|
||||
Assert.assertNotNull(weather.getTemperature());
|
||||
Assert.assertNotNull(weather.getLocation());
|
||||
Assert.assertNotNull(weather.getAtmosphericPressure());
|
||||
@@ -245,7 +245,7 @@ public class SingleResultCurrentWeatherIntegrationTest extends ApiTest {
|
||||
Assert.assertNotNull(weather);
|
||||
Assert.assertNotNull(weather.getState());
|
||||
Assert.assertNotNull(weather.getDescription());
|
||||
Assert.assertNotNull(weather.getRequestedOn());
|
||||
Assert.assertNotNull(weather.getCalculatedOn());
|
||||
Assert.assertNotNull(weather.getTemperature());
|
||||
Assert.assertNotNull(weather.getLocation());
|
||||
Assert.assertNotNull(weather.getAtmosphericPressure());
|
||||
@@ -306,7 +306,7 @@ public class SingleResultCurrentWeatherIntegrationTest extends ApiTest {
|
||||
Assert.assertNotNull(weather);
|
||||
Assert.assertNotNull(weather.getState());
|
||||
Assert.assertNotNull(weather.getDescription());
|
||||
Assert.assertNotNull(weather.getRequestedOn());
|
||||
Assert.assertNotNull(weather.getCalculatedOn());
|
||||
Assert.assertNotNull(weather.getTemperature());
|
||||
Assert.assertNotNull(weather.getLocation());
|
||||
Assert.assertNotNull(weather.getAtmosphericPressure());
|
||||
@@ -368,7 +368,7 @@ public class SingleResultCurrentWeatherIntegrationTest extends ApiTest {
|
||||
Assert.assertNotNull(weather);
|
||||
Assert.assertNotNull(weather.getState());
|
||||
Assert.assertNotNull(weather.getDescription());
|
||||
Assert.assertNotNull(weather.getRequestedOn());
|
||||
Assert.assertNotNull(weather.getCalculatedOn());
|
||||
Assert.assertNotNull(weather.getTemperature());
|
||||
Assert.assertNotNull(weather.getLocation());
|
||||
Assert.assertNotNull(weather.getAtmosphericPressure());
|
||||
@@ -433,7 +433,7 @@ public class SingleResultCurrentWeatherIntegrationTest extends ApiTest {
|
||||
Assert.assertNotNull(weather);
|
||||
Assert.assertNotNull(weather.getState());
|
||||
Assert.assertNotNull(weather.getDescription());
|
||||
Assert.assertNotNull(weather.getRequestedOn());
|
||||
Assert.assertNotNull(weather.getCalculatedOn());
|
||||
Assert.assertNotNull(weather.getTemperature());
|
||||
Assert.assertNotNull(weather.getLocation());
|
||||
Assert.assertNotNull(weather.getAtmosphericPressure());
|
||||
|
||||
Reference in New Issue
Block a user