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:
Patrik Nordwall 2019-02-14 15:19:51 +01:00 committed by GitHub
commit 603ed4dcd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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");