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

Changed test to reflect changes in model

parent c7a7c66f
No related branches found
No related tags found
No related merge requests found
...@@ -70,7 +70,9 @@ public class AppleScabModelTest extends TestCase { ...@@ -70,7 +70,9 @@ public class AppleScabModelTest extends TestCase {
Logger.getLogger(AppleScabModelTest.class.getName()).log(Level.SEVERE, null, ex); Logger.getLogger(AppleScabModelTest.class.getName()).log(Level.SEVERE, null, ex);
} }
System.out.println("Model execution took " + (new Date().getTime() - start.getTime()) + " milliseconds"); System.out.println("Model execution took " + (new Date().getTime() - start.getTime()) + " milliseconds");
if(results != null) // Toggle this to print results when testing
//if(results != null)
if(false)
{ {
SimpleDateFormat format = new SimpleDateFormat("dd.MM.yyyy HH:mm"); SimpleDateFormat format = new SimpleDateFormat("dd.MM.yyyy HH:mm");
Collections.sort(results); Collections.sort(results);
...@@ -172,7 +174,8 @@ public class AppleScabModelTest extends TestCase { ...@@ -172,7 +174,8 @@ public class AppleScabModelTest extends TestCase {
Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("Europe/Oslo")); Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("Europe/Oslo"));
cal.set(2012, Calendar.MARCH, 25, 0, 0, 0); cal.set(2012, Calendar.MARCH, 25, 0, 0, 0);
cal.set(Calendar.MILLISECOND, 0); cal.set(Calendar.MILLISECOND, 0);
config.setConfigParameter("startDateAscosporeMaturity", cal.getTime()); //config.setConfigParameter("startDateAscosporeMaturity", cal.getTime());
config.setConfigParameter("startDateAscosporeMaturity", "2012-03-25");
config.setConfigParameter("timeZone", cal.getTimeZone().getID()); config.setConfigParameter("timeZone", cal.getTimeZone().getID());
BufferedInputStream inputStream = new BufferedInputStream(this.getClass().getResourceAsStream("/weatherData.json")); BufferedInputStream inputStream = new BufferedInputStream(this.getClass().getResourceAsStream("/weatherData.json"));
JsonFactory f = new MappingJsonFactory(); JsonFactory f = new MappingJsonFactory();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment