summaryrefslogtreecommitdiff
path: root/same/src/test
diff options
context:
space:
mode:
authorKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-01-13 11:25:25 +0100
committerKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-01-13 11:25:25 +0100
commit2413c4cf76f82983dc1bde5fb3dc2ce3e1afdf15 (patch)
tree2a9a1bac84c36750af7c18eb2c15be40af11e060 /same/src/test
parenta3389e3e7782f56650760b07bb2f452e78406459 (diff)
Add new Client and Master interfaces.
Begin implementing Master interface.
Diffstat (limited to 'same/src/test')
-rw-r--r--same/src/test/java/com/orbekk/same/MasterServiceImplTest.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/same/src/test/java/com/orbekk/same/MasterServiceImplTest.java b/same/src/test/java/com/orbekk/same/MasterServiceImplTest.java
new file mode 100644
index 0000000..826471e
--- /dev/null
+++ b/same/src/test/java/com/orbekk/same/MasterServiceImplTest.java
@@ -0,0 +1,17 @@
+package com.orbekk.same;
+
+import static org.junit.Assert.*;
+
+import org.junit.Test;
+
+public class MasterServiceImplTest {
+ private State state = new State();
+ private MasterServiceImpl master = new MasterServiceImpl(state);
+
+ @Test
+ public void setsMasterUrl() {
+ master.setUrl("http://10.0.0.54:10050/");
+ assertEquals("http://10.0.0.54:10050/MasterService.json",
+ state.getDataOf(".masterUrl"));
+ }
+}