From 08e9fa4a44bcdcf0a7c4b5e4ccc7616a18ba1386 Mon Sep 17 00:00:00 2001 From: Christian Wulf <chw@informatik.uni-kiel.de> Date: Tue, 3 Mar 2015 18:11:08 +0100 Subject: [PATCH] converted assertEquals to assertThat --- .../teetime/stage/opad/filter/AnomalyDetectionFilterTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/java/teetime/stage/opad/filter/AnomalyDetectionFilterTest.java b/src/test/java/teetime/stage/opad/filter/AnomalyDetectionFilterTest.java index 857592e2..70331a85 100644 --- a/src/test/java/teetime/stage/opad/filter/AnomalyDetectionFilterTest.java +++ b/src/test/java/teetime/stage/opad/filter/AnomalyDetectionFilterTest.java @@ -15,6 +15,8 @@ */ package teetime.stage.opad.filter; +import static org.hamcrest.Matchers.empty; +import static org.hamcrest.Matchers.is; import static org.hamcrest.collection.IsIterableContainingInOrder.contains; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertThat; @@ -66,7 +68,7 @@ public class AnomalyDetectionFilterTest { assertThat(resultsNormalPort, contains(input1, input2)); test(adf).and().send(input1, input2).to(adf.getInputPort()).and().receive(resultsAnnormalPort).from(adf.getOutputPortAnnormal()).start(); - assertEquals(0, resultsAnnormalPort.size()); + assertThat(resultsAnnormalPort, is(empty())); } -- GitLab