Merge pull request #26379 from jrudolph/jr/26030-fix-jdk-11-error
Fix test expectation for JDK 11, refs #26030
This commit is contained in:
commit
603ed4dcd8
1 changed files with 2 additions and 1 deletions
|
|
@ -627,7 +627,8 @@ public class PersistentActorJavaDslTest extends JUnitSuite {
|
|||
|
||||
new EventFilter(Logging.Error.class, Adapter.toUntyped(testKit.system()))
|
||||
.occurrences(1)
|
||||
.message("java.lang.Integer cannot be cast to java.lang.String")
|
||||
// the error messages slightly changed in later JDKs
|
||||
.matches("(class )?java.lang.Integer cannot be cast to (class )?java.lang.String.*")
|
||||
.intercept(
|
||||
() -> {
|
||||
c.tell("expect wrong type");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue