diff options
author | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2019-11-15 15:46:53 +0100 |
---|---|---|
committer | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2019-11-15 15:46:53 +0100 |
commit | 122cd67070e9475eea509a1d6550ce1f43e4bfb6 (patch) | |
tree | dc503697af815d0878476380b327d01e61184127 /src/test | |
parent | ea47b82d7553012b39f6ab6a836a1832da40ca4e (diff) |
Add API definition
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/pl/edu/mimuw/cloudatlas/agent/AgentTest.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/test/java/pl/edu/mimuw/cloudatlas/agent/AgentTest.java b/src/test/java/pl/edu/mimuw/cloudatlas/agent/AgentTest.java index baf77ea..6ab10d6 100644 --- a/src/test/java/pl/edu/mimuw/cloudatlas/agent/AgentTest.java +++ b/src/test/java/pl/edu/mimuw/cloudatlas/agent/AgentTest.java @@ -11,11 +11,15 @@ import java.lang.Thread; import java.io.InputStream; +import java.util.Set; + import java.rmi.registry.LocateRegistry; import java.rmi.RemoteException; import java.rmi.registry.Registry; import java.math.BigDecimal; +import pl.edu.mimuw.cloudatlas.api.Api; + public class AgentTest { private static Process registryProcess; private static Process agentProcess; @@ -39,14 +43,13 @@ public class AgentTest { } @Test - public void testPing() { + public void testGetZoneSet() { try { Registry registry = LocateRegistry.getRegistry("localhost"); Api api = (Api) registry.lookup("Api"); - int res = api.ping(10); - assertEquals(11, res); + Set<String> set = api.getZoneSet(); + assertEquals(null, set); } catch (Exception e) { - System.err.println("FibonacciClient exception:"); e.printStackTrace(); assertTrue(false); } |