Package io.siddhi.core.util
Class SiddhiTestHelper
- java.lang.Object
-
- io.siddhi.core.util.SiddhiTestHelper
-
public class SiddhiTestHelper extends Object
Helper class ot be used by siddhi tests. Any extension can utilize methods in here
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisEventsMatch(List<Object[]> actual, List<Object[]> expected)static booleanisUnsortedEventsMatch(List<Object[]> actual, List<Object[]> expected)static voidwaitForEvents(long sleepTime, int expectedCount, int actualCount, long timeout)static voidwaitForEvents(long sleepTime, int expectedSize, Collection<?> collection, long timeout)static voidwaitForEvents(long sleepTime, int expectedCount, AtomicInteger actualCount, long timeout)static voidwaitForEvents(long sleepTime, AtomicBoolean condition, long timeout)
-
-
-
Method Detail
-
waitForEvents
public static void waitForEvents(long sleepTime, AtomicBoolean condition, long timeout) throws InterruptedException- Throws:
InterruptedException
-
waitForEvents
public static void waitForEvents(long sleepTime, int expectedCount, AtomicInteger actualCount, long timeout) throws InterruptedException- Throws:
InterruptedException
-
waitForEvents
public static void waitForEvents(long sleepTime, int expectedCount, int actualCount, long timeout) throws InterruptedException- Throws:
InterruptedException
-
waitForEvents
public static void waitForEvents(long sleepTime, int expectedSize, Collection<?> collection, long timeout) throws InterruptedException- Throws:
InterruptedException
-
-