Updated tests
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/vre-management/smart-executor-client@111771 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
f944f545f7
commit
10bcef55d5
|
@ -13,6 +13,7 @@ import org.gcube.vremanagement.executor.client.plugins.ExecutorPlugin;
|
|||
import org.gcube.vremanagement.executor.client.proxies.ExecutorProxy;
|
||||
import org.gcube.vremanagement.executor.exception.PluginInstanceNotFoundException;
|
||||
import org.gcube.vremanagement.executor.exception.PluginNotFoundException;
|
||||
import org.gcube.vremanagement.executor.plugin.PluginState;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
@ -42,6 +43,7 @@ public class DefaultExecutorTest {
|
|||
@Test
|
||||
public void launch() {
|
||||
Map<String, Object> inputs = new HashMap<String, Object>();
|
||||
inputs.put("Hello", "World");
|
||||
LaunchParameter launchParameter = new LaunchParameter("Test", inputs);
|
||||
try {
|
||||
proxy.launch(launchParameter);
|
||||
|
@ -64,4 +66,18 @@ public class DefaultExecutorTest {
|
|||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testOk() {
|
||||
Map<String, Object> inputs = new HashMap<String, Object>();
|
||||
LaunchParameter launchParameter = new LaunchParameter("HelloWorld", inputs);
|
||||
try {
|
||||
String executionIdentifier = proxy.launch(launchParameter);
|
||||
PluginState pluginState= proxy.getState(executionIdentifier);
|
||||
Assert.assertEquals(PluginState.RUNNING, pluginState);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue