Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
Model ALTERNARIA
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VIPS
Models
Java
Model ALTERNARIA
Commits
3bc3aa1b
Commit
3bc3aa1b
authored
5 years ago
by
Bhabesh Bhabani Mukhopadhyay
Browse files
Options
Downloads
Patches
Plain Diff
updated test result
updated test result
parent
c91dc3ca
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/java/no/nibio/vips/model/alternariamodel/AlternariaModelTest.java
+22
-26
22 additions, 26 deletions
...nibio/vips/model/alternariamodel/AlternariaModelTest.java
with
22 additions
and
26 deletions
src/test/java/no/nibio/vips/model/alternariamodel/AlternariaModelTest.java
+
22
−
26
View file @
3bc3aa1b
...
@@ -62,12 +62,13 @@ public class AlternariaModelTest {
...
@@ -62,12 +62,13 @@ public class AlternariaModelTest {
instance
.
setConfiguration
(
config
);
instance
.
setConfiguration
(
config
);
List
<
Result
>
result
=
instance
.
getResult
();
List
<
Result
>
result
=
instance
.
getResult
();
assertNotNull
(
result
);
assertNotNull
(
result
);
/*
for(Result res:result)
for(Result res:result)
{
{
System.out.println(res.toString());
System.out.println(res.toString());
}
}
*/
}
}
...
@@ -108,6 +109,7 @@ public class AlternariaModelTest {
...
@@ -108,6 +109,7 @@ public class AlternariaModelTest {
/**
/**
* Test of getLicense method, of class AlternariaModel.
* Test of getLicense method, of class AlternariaModel.
* TODO - Recheck the functionality
*/
*/
@org
.
junit
.
jupiter
.
api
.
Test
@org
.
junit
.
jupiter
.
api
.
Test
public
void
testGetLicense
()
{
public
void
testGetLicense
()
{
...
@@ -115,9 +117,7 @@ public class AlternariaModelTest {
...
@@ -115,9 +117,7 @@ public class AlternariaModelTest {
AlternariaModel
instance
=
new
AlternariaModel
();
AlternariaModel
instance
=
new
AlternariaModel
();
String
expResult
=
""
;
String
expResult
=
""
;
String
result
=
instance
.
getLicense
();
String
result
=
instance
.
getLicense
();
assertEquals
(
expResult
,
result
);
assertNotNull
(
result
);
// TODO review the generated test code and remove the default call to fail.
fail
(
"The test case is a prototype."
);
}
}
/**
/**
...
@@ -154,13 +154,13 @@ public class AlternariaModelTest {
...
@@ -154,13 +154,13 @@ public class AlternariaModelTest {
AlternariaModel
instance
=
new
AlternariaModel
();
AlternariaModel
instance
=
new
AlternariaModel
();
String
expResult
=
""
;
String
expResult
=
""
;
String
result
=
instance
.
getModelDescription
(
language
);
String
result
=
instance
.
getModelDescription
(
language
);
assertEquals
(
expResult
,
result
);
assertNotNull
(
result
);
// TODO review the generated test code and remove the default call to fail.
fail
(
"The test case is a prototype."
);
}
}
/**
/**
* Test of getWarningStatusInterpretation method, of class AlternariaModel.
* Test of getWarningStatusInterpretation method, of class AlternariaModel.
* TODO - Recheck the functionality
*/
*/
@org
.
junit
.
jupiter
.
api
.
Test
@org
.
junit
.
jupiter
.
api
.
Test
public
void
testGetWarningStatusInterpretation_0args
()
{
public
void
testGetWarningStatusInterpretation_0args
()
{
...
@@ -168,13 +168,14 @@ public class AlternariaModelTest {
...
@@ -168,13 +168,14 @@ public class AlternariaModelTest {
AlternariaModel
instance
=
new
AlternariaModel
();
AlternariaModel
instance
=
new
AlternariaModel
();
String
expResult
=
""
;
String
expResult
=
""
;
String
result
=
instance
.
getWarningStatusInterpretation
();
String
result
=
instance
.
getWarningStatusInterpretation
();
assert
Equals
(
expResult
,
result
);
assert
NotNull
(
result
);
// TODO review the generated test code and remove the default call to fail.
fail
(
"The test case is a prototype."
);
}
}
/**
/**
* Test of getWarningStatusInterpretation method, of class AlternariaModel.
* Test of getWarningStatusInterpretation method, of class AlternariaModel.
* TODO - Recheck the functionality
*/
*/
@org
.
junit
.
jupiter
.
api
.
Test
@org
.
junit
.
jupiter
.
api
.
Test
public
void
testGetWarningStatusInterpretation_String
()
{
public
void
testGetWarningStatusInterpretation_String
()
{
...
@@ -183,13 +184,13 @@ public class AlternariaModelTest {
...
@@ -183,13 +184,13 @@ public class AlternariaModelTest {
AlternariaModel
instance
=
new
AlternariaModel
();
AlternariaModel
instance
=
new
AlternariaModel
();
String
expResult
=
""
;
String
expResult
=
""
;
String
result
=
instance
.
getWarningStatusInterpretation
(
language
);
String
result
=
instance
.
getWarningStatusInterpretation
(
language
);
assertEquals
(
expResult
,
result
);
assertNotNull
(
result
);
// TODO review the generated test code and remove the default call to fail.
fail
(
"The test case is a prototype."
);
}
}
/**
/**
* Test of getModelUsage method, of class AlternariaModel.
* Test of getModelUsage method, of class AlternariaModel.
* TODO - Recheck the functionality
*/
*/
@org
.
junit
.
jupiter
.
api
.
Test
@org
.
junit
.
jupiter
.
api
.
Test
public
void
testGetModelUsage_0args
()
{
public
void
testGetModelUsage_0args
()
{
...
@@ -197,13 +198,12 @@ public class AlternariaModelTest {
...
@@ -197,13 +198,12 @@ public class AlternariaModelTest {
AlternariaModel
instance
=
new
AlternariaModel
();
AlternariaModel
instance
=
new
AlternariaModel
();
String
expResult
=
""
;
String
expResult
=
""
;
String
result
=
instance
.
getModelUsage
();
String
result
=
instance
.
getModelUsage
();
assertEquals
(
expResult
,
result
);
assertNotNull
(
result
);
// TODO review the generated test code and remove the default call to fail.
fail
(
"The test case is a prototype."
);
}
}
/**
/**
* Test of getModelUsage method, of class AlternariaModel.
* Test of getModelUsage method, of class AlternariaModel.
* TODO - Recheck the functionality
*/
*/
@org
.
junit
.
jupiter
.
api
.
Test
@org
.
junit
.
jupiter
.
api
.
Test
public
void
testGetModelUsage_String
()
{
public
void
testGetModelUsage_String
()
{
...
@@ -212,13 +212,12 @@ public class AlternariaModelTest {
...
@@ -212,13 +212,12 @@ public class AlternariaModelTest {
AlternariaModel
instance
=
new
AlternariaModel
();
AlternariaModel
instance
=
new
AlternariaModel
();
String
expResult
=
""
;
String
expResult
=
""
;
String
result
=
instance
.
getModelUsage
(
language
);
String
result
=
instance
.
getModelUsage
(
language
);
assertEquals
(
expResult
,
result
);
assertNotNull
(
result
);
// TODO review the generated test code and remove the default call to fail.
fail
(
"The test case is a prototype."
);
}
}
/**
/**
* Test of getSampleConfig method, of class AlternariaModel.
* Test of getSampleConfig method, of class AlternariaModel.
* TODO - Recheck the functionality
*/
*/
@org
.
junit
.
jupiter
.
api
.
Test
@org
.
junit
.
jupiter
.
api
.
Test
public
void
testGetSampleConfig
()
{
public
void
testGetSampleConfig
()
{
...
@@ -226,9 +225,7 @@ public class AlternariaModelTest {
...
@@ -226,9 +225,7 @@ public class AlternariaModelTest {
AlternariaModel
instance
=
new
AlternariaModel
();
AlternariaModel
instance
=
new
AlternariaModel
();
String
expResult
=
""
;
String
expResult
=
""
;
String
result
=
instance
.
getSampleConfig
();
String
result
=
instance
.
getSampleConfig
();
assertEquals
(
expResult
,
result
);
assertNotNull
(
result
);
// TODO review the generated test code and remove the default call to fail.
fail
(
"The test case is a prototype."
);
}
}
/**
/**
...
@@ -240,8 +237,7 @@ public class AlternariaModelTest {
...
@@ -240,8 +237,7 @@ public class AlternariaModelTest {
ModelConfiguration
config
=
this
.
getConfiguration
(
"/weatherdata_leaf_wetness_temperature.json"
);
ModelConfiguration
config
=
this
.
getConfiguration
(
"/weatherdata_leaf_wetness_temperature.json"
);
AlternariaModel
instance
=
new
AlternariaModel
();
AlternariaModel
instance
=
new
AlternariaModel
();
instance
.
setConfiguration
(
config
);
instance
.
setConfiguration
(
config
);
// TODO review the generated test code and remove the default call to fail.
assertNotNull
(
instance
);
fail
(
"The test case is a prototype."
);
}
}
...
@@ -252,7 +248,7 @@ public class AlternariaModelTest {
...
@@ -252,7 +248,7 @@ public class AlternariaModelTest {
config
.
setModelId
(
AlternariaModel
.
MODEL_ID
.
toString
());
config
.
setModelId
(
AlternariaModel
.
MODEL_ID
.
toString
());
config
.
setConfigParameter
(
"timeZone"
,
"Europe/
Oslo
"
);
config
.
setConfigParameter
(
"timeZone"
,
"Europe/
Helsinki
"
);
BufferedInputStream
inputStream
=
new
BufferedInputStream
(
this
.
getClass
().
getResourceAsStream
(
fileName
));
BufferedInputStream
inputStream
=
new
BufferedInputStream
(
this
.
getClass
().
getResourceAsStream
(
fileName
));
JsonFactory
f
=
new
MappingJsonFactory
();
JsonFactory
f
=
new
MappingJsonFactory
();
JsonParser
jp
=
f
.
createParser
(
inputStream
);
JsonParser
jp
=
f
.
createParser
(
inputStream
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment