-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Support JDKs 11 & 17 #8901
Support JDKs 11 & 17 #8901
Changes from 1 commit
4f09fef
6d7c8ad
4b7dc2d
200dee1
7e811a2
7e0af22
a899239
8b506b0
1645ff3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
package io.confluent.ksql.execution; | ||
|
||
import static org.hamcrest.CoreMatchers.anyOf; | ||
import static org.hamcrest.CoreMatchers.containsString; | ||
import static org.hamcrest.CoreMatchers.is; | ||
import static org.hamcrest.CoreMatchers.nullValue; | ||
import static org.hamcrest.MatcherAssert.assertThat; | ||
import static org.mockito.ArgumentMatchers.any; | ||
import static org.mockito.Mockito.never; | ||
|
@@ -425,7 +427,7 @@ private void runEvaluator( | |
= ((RecordProcessingError) errorMessageCaptor.getValue()); | ||
if (error.get().getMessage() == null) { | ||
assertThat(processingError.getException().get().getMessage(), | ||
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.
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. Thanks. Is the new matcher meaningful? I.e., we're checking that the message, which must either be a String or a null, is either a String or a null. It seems like we could equivalently make no assertion, right? 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. fair enough! I don't think the assertion is particularly helpful in either way |
||
CoreMatchers.any(String.class)); | ||
anyOf(CoreMatchers.any(String.class), nullValue())); | ||
} else { | ||
assertThat(processingError.getException().get().getMessage(), | ||
containsString(error.get().getMessage())); | ||
|
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.
this will use the openjdk-11 pool in Jenkins
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.
Is it possible to add a comment? It seems pretty subtle.
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.
I don't think a comment is super helpful here, generally tools wanted us to move off of
dockerfile
and ontocommon
andcommon
conveniently uses jdk11 pool. You can specifynodeLabel
to change the node pool that you use.