diff --git a/src/test/java/no/nibio/vips/model/alternariamodel/AlternariaModelTest.java b/src/test/java/no/nibio/vips/model/alternariamodel/AlternariaModelTest.java index 608c448e847fd0485ea4dd4339d03f209e29ab17..7d7ed23dcf3c66939f677a68504660c69d7beee4 100644 --- a/src/test/java/no/nibio/vips/model/alternariamodel/AlternariaModelTest.java +++ b/src/test/java/no/nibio/vips/model/alternariamodel/AlternariaModelTest.java @@ -62,12 +62,13 @@ public class AlternariaModelTest { instance.setConfiguration(config); List<Result> result = instance.getResult(); assertNotNull(result); - + + /* for(Result res:result) { System.out.println(res.toString()); } - + */ } @@ -108,6 +109,7 @@ public class AlternariaModelTest { /** * Test of getLicense method, of class AlternariaModel. + * TODO - Recheck the functionality */ @org.junit.jupiter.api.Test public void testGetLicense() { @@ -115,9 +117,7 @@ public class AlternariaModelTest { AlternariaModel instance = new AlternariaModel(); String expResult = ""; String result = instance.getLicense(); - assertEquals(expResult, result); - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); + assertNotNull(result); } /** @@ -154,13 +154,13 @@ public class AlternariaModelTest { AlternariaModel instance = new AlternariaModel(); String expResult = ""; String result = instance.getModelDescription(language); - assertEquals(expResult, result); - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); + assertNotNull(result); + } /** * Test of getWarningStatusInterpretation method, of class AlternariaModel. + * TODO - Recheck the functionality */ @org.junit.jupiter.api.Test public void testGetWarningStatusInterpretation_0args() { @@ -168,13 +168,14 @@ public class AlternariaModelTest { AlternariaModel instance = new AlternariaModel(); String expResult = ""; String result = instance.getWarningStatusInterpretation(); - assertEquals(expResult, result); - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); + assertNotNull(result); + + } /** * Test of getWarningStatusInterpretation method, of class AlternariaModel. + * TODO - Recheck the functionality */ @org.junit.jupiter.api.Test public void testGetWarningStatusInterpretation_String() { @@ -183,13 +184,13 @@ public class AlternariaModelTest { AlternariaModel instance = new AlternariaModel(); String expResult = ""; String result = instance.getWarningStatusInterpretation(language); - assertEquals(expResult, result); - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); + assertNotNull(result); + } /** * Test of getModelUsage method, of class AlternariaModel. + * TODO - Recheck the functionality */ @org.junit.jupiter.api.Test public void testGetModelUsage_0args() { @@ -197,13 +198,12 @@ public class AlternariaModelTest { AlternariaModel instance = new AlternariaModel(); String expResult = ""; String result = instance.getModelUsage(); - assertEquals(expResult, result); - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); + assertNotNull(result); } /** * Test of getModelUsage method, of class AlternariaModel. + * TODO - Recheck the functionality */ @org.junit.jupiter.api.Test public void testGetModelUsage_String() { @@ -212,13 +212,12 @@ public class AlternariaModelTest { AlternariaModel instance = new AlternariaModel(); String expResult = ""; String result = instance.getModelUsage(language); - assertEquals(expResult, result); - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); + assertNotNull(result); } /** * Test of getSampleConfig method, of class AlternariaModel. + * TODO - Recheck the functionality */ @org.junit.jupiter.api.Test public void testGetSampleConfig() { @@ -226,9 +225,7 @@ public class AlternariaModelTest { AlternariaModel instance = new AlternariaModel(); String expResult = ""; String result = instance.getSampleConfig(); - assertEquals(expResult, result); - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); + assertNotNull(result); } /** @@ -240,8 +237,7 @@ public class AlternariaModelTest { ModelConfiguration config = this.getConfiguration("/weatherdata_leaf_wetness_temperature.json"); AlternariaModel instance = new AlternariaModel(); instance.setConfiguration(config); - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); + assertNotNull(instance); } @@ -252,7 +248,7 @@ public class AlternariaModelTest { config.setModelId(AlternariaModel.MODEL_ID.toString()); - config.setConfigParameter("timeZone", "Europe/Oslo"); + config.setConfigParameter("timeZone", "Europe/Helsinki"); BufferedInputStream inputStream = new BufferedInputStream(this.getClass().getResourceAsStream(fileName)); JsonFactory f = new MappingJsonFactory(); JsonParser jp = f.createParser(inputStream);