From 040f0c3f826d4693f741927d49f896f6c2400e7d Mon Sep 17 00:00:00 2001 From: as <asalveter@gmail.com> Date: Tue, 3 Mar 2015 16:27:27 +0100 Subject: [PATCH] higher quality tests --- .../java/teetime/stage/opad/AnomalyDetectionFilterTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/java/teetime/stage/opad/AnomalyDetectionFilterTest.java b/src/test/java/teetime/stage/opad/AnomalyDetectionFilterTest.java index 81376e74..3acc233a 100644 --- a/src/test/java/teetime/stage/opad/AnomalyDetectionFilterTest.java +++ b/src/test/java/teetime/stage/opad/AnomalyDetectionFilterTest.java @@ -18,7 +18,6 @@ package teetime.stage.opad; import static org.hamcrest.collection.IsIterableContainingInOrder.contains; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertThat; -import static org.junit.Assert.assertTrue; import static teetime.framework.test.StageTester.test; import java.util.ArrayList; @@ -76,7 +75,7 @@ public class AnomalyDetectionFilterTest { public void OutputPortAnnormalShouldForwardElements() { test(adf).and().send(input3, input4).to(adf.getInputPort()).and().receive(resultsNormalPort).from(adf.getOutputPortNormal()).start(); - assertTrue("no output", resultsNormalPort.size() == 0); + assertEquals(0, resultsAnnormalPort.size()); test(adf).and().send(input3, input4).to(adf.getInputPort()).and().receive(resultsAnnormalPort).from(adf.getOutputPortAnnormal()).start(); assertThat("output: input3, input4", resultsAnnormalPort, contains(input3, input4)); -- GitLab