summaryrefslogtreecommitdiff
path: root/same/src/test/java/com/orbekk
diff options
context:
space:
mode:
authorKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-01-13 13:31:02 +0100
committerKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-01-13 13:31:02 +0100
commit3cb271e123784063cd08b7693be42c320970ea69 (patch)
tree3b2f5068b515b2511ff35c83d0ab6af2db3dd4cd /same/src/test/java/com/orbekk
parent6ec163993d1baf4ebcddde287c0ade7fb4cf20c6 (diff)
Bring back worker thread.
:(
Diffstat (limited to 'same/src/test/java/com/orbekk')
-rw-r--r--same/src/test/java/com/orbekk/same/MasterServiceImplTest.java7
1 files changed, 7 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
index 9d8a134..cbfbf12 100644
--- a/same/src/test/java/com/orbekk/same/MasterServiceImplTest.java
+++ b/same/src/test/java/com/orbekk/same/MasterServiceImplTest.java
@@ -34,4 +34,11 @@ public class MasterServiceImplTest {
List<String> participants = state.getList(".participants");
assertTrue(participants.contains("http://clientUrl"));
}
+
+ @Test
+ public void workLoopClearsUpdatedComponents() {
+ state.update("Test", "Content", 0);
+ assertTrue(master._performWork());
+ assertTrue(state.getAndClearUpdatedComponents().isEmpty());
+ }
}