summaryrefslogtreecommitdiff
path: root/same/src/test/java/com
diff options
context:
space:
mode:
Diffstat (limited to 'same/src/test/java/com')
-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"));
+ }
+}