diff --git a/src/test/java/teetime/framework/StageTest.java b/src/test/java/teetime/framework/StageTest.java index 937a3b2fd0d6c944354ca426a5e6371f3478c0bb..3081b34678e7e3d81ce154d6ec65b9335f61d708 100644 --- a/src/test/java/teetime/framework/StageTest.java +++ b/src/test/java/teetime/framework/StageTest.java @@ -18,7 +18,9 @@ package teetime.framework; import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.notNullValue; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertThat; +import static org.junit.Assert.assertTrue; import org.junit.Assert; import org.junit.Test; @@ -53,6 +55,13 @@ public class StageTest { assertEquals(tc.init.exceptionListener, tc.delay.exceptionListener); } + @Test + public void testActiveFlag() { + TestConfig config = new TestConfig(); + assertTrue(config.init.isActive()); + assertFalse(config.delay.isActive()); + } + private static class TestConfig extends Configuration { public final DelayAndTerminate delay; public InitialElementProducer<String> init;