Skip to content
Snippets Groups Projects
Commit abeb2125 authored by Nelson Tavares de Sousa's avatar Nelson Tavares de Sousa
Browse files

added test

parent 9062a4b6
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,9 @@ package teetime.framework; ...@@ -18,7 +18,9 @@ package teetime.framework;
import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.notNullValue; import static org.hamcrest.Matchers.notNullValue;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
import org.junit.Assert; import org.junit.Assert;
import org.junit.Test; import org.junit.Test;
...@@ -53,6 +55,13 @@ public class StageTest { ...@@ -53,6 +55,13 @@ public class StageTest {
assertEquals(tc.init.exceptionListener, tc.delay.exceptionListener); 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 { private static class TestConfig extends Configuration {
public final DelayAndTerminate delay; public final DelayAndTerminate delay;
public InitialElementProducer<String> init; public InitialElementProducer<String> init;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment