java.lang.Object
io.cucumber.compatibilitykit.MessageOrderer
Order Cucumber messages.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intfindTestRunFinishedIndex(List<io.cucumber.messages.types.Envelope> messages) private static intfindTestRunStartedIndex(List<io.cucumber.messages.types.Envelope> messages) groupTestCasesIntoBuckets(List<io.cucumber.messages.types.Envelope> testCaseMessages) private static List<io.cucumber.messages.types.Envelope> interleafMessagesFromTestCases(Random random, List<List<io.cucumber.messages.types.Envelope>> messagesGroupedByTestCase) private static voidreplaceAll(List<io.cucumber.messages.types.Envelope> testCaseMessagesInSerial, List<io.cucumber.messages.types.Envelope> envelopes) Simulates parallel execution of testcases by interleaving the execution of different test cases.private static List<io.cucumber.messages.types.Envelope> testCasesSubList(List<io.cucumber.messages.types.Envelope> messages)
-
Field Details
-
random
Make test cases deterministically reproducible.
-
-
Constructor Details
-
MessageOrderer
-
-
Method Details
-
originalOrder
-
simulateParallelExecution
Simulates parallel execution of testcases by interleaving the execution of different test cases.Cucumber messages only have a partial ordering. By simulating a different ordering implementers of message consumer can test if their consumer works correctly.
-
replaceAll
-
interleafMessagesFromTestCases
-
groupTestCasesIntoBuckets
-
testCasesSubList
-
findTestRunFinishedIndex
-
findTestRunStartedIndex
-