Package org.citrusframework.util
Class TestUtils
java.lang.Object
org.citrusframework.util.TestUtils
Utility class for test cases providing several utility
methods regarding Citrus test cases.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringnormalizeLineEndings(String text) Normalize the text by trimming whitespace and replacing line endings by a linux representation.static voidwaitForCompletion(ScheduledExecutorService scheduledExecutor, Completable container, TestContext context, long timeout) Uses given scheduler to wait for container to finish properly.static voidwaitForCompletion(Completable container, TestContext context) Wait for container completion with default timeout.static voidwaitForCompletion(Completable container, TestContext context, long timeout) Wait for container completion using default thread executor.
-
Field Details
-
WAIT_THREAD_PREFIX
Used to identify waiting task threads pool- See Also:
-
-
Method Details
-
waitForCompletion
Wait for container completion with default timeout. -
waitForCompletion
Wait for container completion using default thread executor. -
waitForCompletion
public static void waitForCompletion(ScheduledExecutorService scheduledExecutor, Completable container, TestContext context, long timeout) Uses given scheduler to wait for container to finish properly. Method polls for done state on container for given amount of time. -
normalizeLineEndings
Normalize the text by trimming whitespace and replacing line endings by a linux representation.
-