-
Notifications
You must be signed in to change notification settings - Fork 528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ChronicleMethodReaderTest.shouldFilterByMultipleInclusionRegex #1588
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -187,10 +187,12 @@ public void shouldFilterByInclusionRegex() { | |
.forEach(msg -> assertThat(msg, containsString("goodbye"))); | ||
} | ||
|
||
@Ignore("https://github.com/OpenHFT/Chronicle-Queue/issues/1150") | ||
@Test | ||
public void shouldFilterByMultipleInclusionRegex() { | ||
basicReader().withInclusionRegex(".*bye$").withInclusionRegex(".*o.*").execute(); | ||
basicReader() | ||
.withInclusionRegex(".*bye.*") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @yevgenp does this include OR or AND? We should specify in the javadoc what happens if you specify multiple inclusion regexes. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. AND There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @tgd I have added javadoc. Please squash/merge if you are happy with this |
||
.withInclusionRegex(".*o.*") | ||
.execute(); | ||
|
||
assertEquals(24, capturedOutput.size()); | ||
yevgenp marked this conversation as resolved.
Show resolved
Hide resolved
|
||
capturedOutput.stream().filter(msg -> !msg.startsWith("0x")). | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
love the additional test coverage