Skip to content
Snippets Groups Projects
Commit 42910159 authored by Lene Wasskog's avatar Lene Wasskog
Browse files

fix: Set correct first day of week, fix test accordingly

This setting may differ from machine to machine, so we need
to set it explicitly in order to ensure correct results.
parent 537dc172
Branches
Tags
No related merge requests found
......@@ -122,6 +122,7 @@ public class OatFloweringModel extends I18nImpl implements Model{
private Result initResult(WeatherObservation obs)
{
Calendar cal = Calendar.getInstance();
cal.setFirstDayOfWeek(Calendar.MONDAY);
Result result = new ResultImpl();
result.setValidTimeStart(obs.getTimeMeasured());
......
......@@ -119,7 +119,7 @@ public class OatFloweringModelTest {
System.out.println("Result: [" + result.getValidTimeStart() + "]" + result.getAllValues());
}*/
assertEquals("27", weekResult);
assertEquals("26", weekResult);
assertEquals("60", zReached);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment