public class GeppettoManagerTest
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static IExperiment |
addedExperiment |
ExpectedException |
exception |
private static IGeppettoProject |
geppettoProject |
private static GeppettoManager |
manager |
private static RuntimeProject |
runtimeProject |
Constructor and Description |
---|
GeppettoManagerTest() |
Modifier and Type | Method and Description |
---|---|
private void |
checkValues(VariableValue variable,
int columnIndexInTheDATFile) |
static void |
doYourOneTimeTeardown() |
static void |
setUp() |
void |
test01SetUser()
Test method for
GeppettoManager.setUser(org.geppetto.core.data.model.IUser) . |
void |
test02GetUser()
Test method for
GeppettoManager.getUser() . |
void |
test03LoadProject()
|
void |
test04RuntimeProject()
|
void |
test05LoadExperiment()
|
void |
test06CheckExperimentsStatus()
|
void |
test07SetModelParametersNegativeNoDesign()
|
void |
test08SetWatchedVariablesNegativeNoDesign()
Test method for
org.geppetto.simulation.manager.GeppettoManager#setWatchedVariables(java.util.List, org.geppetto.core.data.model.IExperiment, org.geppetto.core.data.model.IGeppettoProject) . |
void |
test09NewExperiment()
|
void |
test10LoadNewExperiment()
|
void |
test11SetModelParameters()
|
void |
test12SetModelParametersNegativeWrongParameter()
|
void |
test13SetWatchedVariables()
Test method for
org.geppetto.simulation.manager.GeppettoManager#setWatchedVariables(java.util.List, org.geppetto.core.data.model.IExperiment, org.geppetto.core.data.model.IGeppettoProject) . |
void |
test14SetWatchedVariablesNegativeWrongVariable()
Test method for
org.geppetto.simulation.manager.GeppettoManager#setWatchedVariables(java.util.List, org.geppetto.core.data.model.IExperiment, org.geppetto.core.data.model.IGeppettoProject) . |
void |
test15CheckExperimentsStatusAgain()
|
void |
test16RunExperiment()
|
void |
test17CheckExperimentsStatusAgain2()
|
void |
test18CancelExperimentRun()
|
void |
test19CheckExperimentsStatusAgain3()
|
void |
test20RunExperimentAgain()
|
void |
test21CheckExperimentsStatusAgain4()
|
void |
test22PlayExperiment()
Test method for
org.geppetto.simulation.manager.GeppettoManager#playExperiment(java.lang.String, org.geppetto.core.data.model.IExperiment) . |
void |
test23DownloadModel()
|
void |
test24DownloadResults()
|
void |
test25GetSupportedOuputs()
|
void |
test26GetScope()
Test method for
GeppettoManager.getScope() . |
void |
test27DeleteExperiment()
|
void |
test28CheckExperimentsStatusAgain5()
|
void |
test29CloseProject()
|
void |
test30DeleteProject()
|
void |
testLinkDropBoxAccount()
Test method for
GeppettoManager.linkDropBoxAccount(java.lang.String) . |
void |
testUnlinkDropBoxAccount()
Test method for
GeppettoManager.unlinkDropBoxAccount(java.lang.String) . |
void |
testUploadModelToDropBox()
|
void |
testUploadResultsToDropBox()
|
public final ExpectedException exception
private static GeppettoManager manager
private static IGeppettoProject geppettoProject
private static RuntimeProject runtimeProject
private static IExperiment addedExperiment
public static void setUp() throws java.lang.Exception
java.lang.Exception
public void test01SetUser() throws GeppettoExecutionException
GeppettoManager.setUser(org.geppetto.core.data.model.IUser)
.GeppettoExecutionException
public void test02GetUser()
GeppettoManager.getUser()
.public void test03LoadProject() throws java.io.IOException, GeppettoInitializationException, GeppettoExecutionException, GeppettoAccessException
GeppettoManager.loadProject(java.lang.String, org.geppetto.core.data.model.IGeppettoProject)
.java.io.IOException
GeppettoExecutionException
GeppettoInitializationException
GeppettoAccessException
public void test04RuntimeProject() throws GeppettoExecutionException
GeppettoExecutionException
public void test05LoadExperiment() throws GeppettoExecutionException, GeppettoAccessException
public void test06CheckExperimentsStatus()
public void test07SetModelParametersNegativeNoDesign() throws GeppettoExecutionException, GeppettoAccessException
public void test08SetWatchedVariablesNegativeNoDesign() throws GeppettoExecutionException, GeppettoAccessException
org.geppetto.simulation.manager.GeppettoManager#setWatchedVariables(java.util.List, org.geppetto.core.data.model.IExperiment, org.geppetto.core.data.model.IGeppettoProject)
.public void test09NewExperiment() throws GeppettoExecutionException, GeppettoAccessException
public void test10LoadNewExperiment() throws GeppettoExecutionException, GeppettoAccessException
public void test11SetModelParameters() throws GeppettoExecutionException, GeppettoAccessException
public void test12SetModelParametersNegativeWrongParameter() throws GeppettoExecutionException, GeppettoAccessException
public void test13SetWatchedVariables() throws GeppettoExecutionException, GeppettoAccessException
org.geppetto.simulation.manager.GeppettoManager#setWatchedVariables(java.util.List, org.geppetto.core.data.model.IExperiment, org.geppetto.core.data.model.IGeppettoProject)
.public void test14SetWatchedVariablesNegativeWrongVariable() throws GeppettoExecutionException, GeppettoAccessException
org.geppetto.simulation.manager.GeppettoManager#setWatchedVariables(java.util.List, org.geppetto.core.data.model.IExperiment, org.geppetto.core.data.model.IGeppettoProject)
.public void test15CheckExperimentsStatusAgain()
public void test16RunExperiment() throws GeppettoExecutionException, java.lang.InterruptedException, GeppettoAccessException
GeppettoManager.runExperiment(java.lang.String, org.geppetto.core.data.model.IExperiment)
.GeppettoExecutionException
java.lang.InterruptedException
GeppettoAccessException
public void test17CheckExperimentsStatusAgain2()
public void test18CancelExperimentRun() throws GeppettoExecutionException
GeppettoManager.cancelExperimentRun(java.lang.String, org.geppetto.core.data.model.IExperiment)
.GeppettoExecutionException
public void test19CheckExperimentsStatusAgain3()
public void test20RunExperimentAgain() throws GeppettoExecutionException, java.lang.InterruptedException, GeppettoAccessException
GeppettoManager.runExperiment(java.lang.String, org.geppetto.core.data.model.IExperiment)
.GeppettoExecutionException
java.lang.InterruptedException
GeppettoAccessException
public void test21CheckExperimentsStatusAgain4()
public void test22PlayExperiment() throws GeppettoExecutionException, java.lang.NumberFormatException, java.io.IOException, GeppettoAccessException
org.geppetto.simulation.manager.GeppettoManager#playExperiment(java.lang.String, org.geppetto.core.data.model.IExperiment)
.GeppettoExecutionException
java.io.IOException
java.lang.NumberFormatException
GeppettoAccessException
private void checkValues(VariableValue variable, int columnIndexInTheDATFile) throws java.lang.NumberFormatException, java.io.IOException
variable
- columnIndexInTheDATFile
- java.lang.NumberFormatException
java.io.IOException
public void testLinkDropBoxAccount() throws java.lang.Exception
GeppettoManager.linkDropBoxAccount(java.lang.String)
.java.lang.Exception
public void testUploadModelToDropBox() throws java.lang.Exception
java.lang.Exception
public void testUploadResultsToDropBox() throws GeppettoExecutionException, GeppettoAccessException
public void testUnlinkDropBoxAccount() throws java.lang.Exception
GeppettoManager.unlinkDropBoxAccount(java.lang.String)
.java.lang.Exception
public void test23DownloadModel() throws GeppettoExecutionException, GeppettoAccessException
public void test24DownloadResults() throws GeppettoExecutionException, java.io.IOException, GeppettoAccessException
GeppettoExecutionException
java.io.IOException
GeppettoAccessException
public void test25GetSupportedOuputs() throws GeppettoExecutionException, GeppettoAccessException
public void test26GetScope()
GeppettoManager.getScope()
.public void test27DeleteExperiment() throws GeppettoExecutionException, GeppettoAccessException
public void test28CheckExperimentsStatusAgain5()
public void test29CloseProject() throws GeppettoExecutionException
GeppettoManager.closeProject(java.lang.String, org.geppetto.core.data.model.IGeppettoProject)
.GeppettoExecutionException
public void test30DeleteProject() throws GeppettoExecutionException, GeppettoAccessException
public static void doYourOneTimeTeardown()