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