From da76c7fa12c48ab9235da5d540234f57fe3dc82b Mon Sep 17 00:00:00 2001 From: Nelson Tavares de Sousa <stu103017@mail.uni-kiel.de> Date: Fri, 12 Jun 2015 16:29:05 +0200 Subject: [PATCH] created test body --- src/test/java/teetime/framework/AnalysisTest.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/test/java/teetime/framework/AnalysisTest.java b/src/test/java/teetime/framework/AnalysisTest.java index 5a596637..5561f809 100644 --- a/src/test/java/teetime/framework/AnalysisTest.java +++ b/src/test/java/teetime/framework/AnalysisTest.java @@ -24,7 +24,9 @@ import static org.junit.Assert.assertThat; import static org.junit.Assert.assertTrue; import org.junit.Before; +import org.junit.Rule; import org.junit.Test; +import org.junit.rules.ExpectedException; import teetime.stage.InitialElementProducer; import teetime.stage.basic.Sink; @@ -121,4 +123,14 @@ public class AnalysisTest { } } } + + @Rule + public ExpectedException thrown = ExpectedException.none(); + + @Test + public void testInstantiatePipesIncorrectConfiguration() { + thrown.expect(IllegalStateException.class); + thrown.expectMessage("Crossing threads"); + } + } -- GitLab