Skip to content
Snippets Groups Projects
Commit 6bb29bd9 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Fixed bug in test

parent ba85db18
No related branches found
No related tags found
No related merge requests found
......@@ -63,13 +63,16 @@ public class DataTransformerTest extends TestCase {
System.out.println("getVIPSWeatherData");
WeatherData IPMWeatherData = this.getWeatherData("/IPMData_hourly.json");
DataTransformer instance = new DataTransformer();
List<WeatherObservation> result = instance.getVIPSWeatherData(IPMWeatherData);
result.forEach(obs->System.out.println(obs));
assertEquals(IPMWeatherData.getLocationWeatherData().get(0).getLength() * IPMWeatherData.getLocationWeatherData().get(0).getWidth(), result.size());
try
{
List<WeatherObservation> result = instance.getVIPSWeatherData(IPMWeatherData);
result.forEach(obs->System.out.println(obs));
assertEquals(IPMWeatherData.getLocationWeatherData().get(0).getLength() * IPMWeatherData.getLocationWeatherData().get(0).getWidth(), result.size());
}catch(DataTransformerException ex)
{
fail(ex.getMessage());
}
}
private WeatherData getWeatherData(String fileName)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment