Skip to content

Commit 6c73b69

Browse files
committed
Test update to support Java 11 NPE message
1 parent 6d6b541 commit 6c73b69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/io/avaje/logback/encoder/JsonEncoderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ void throwable_usingDefault() {
7676
SimpleMapper simpleMapper = SimpleMapper.builder().build();
7777
Map<String, Object> asMap = simpleMapper.map().fromJson(bytes);
7878

79-
assertThat((String)asMap.get("exception")).startsWith("java.lang.NullPointerException: Cannot invoke \"String.toUpperCase()\"");
79+
assertThat((String)asMap.get("exception")).startsWith("java.lang.NullPointerException: ");
8080
}
8181

8282
@Test
@@ -96,7 +96,7 @@ void throwable_usingConverter() {
9696
SimpleMapper simpleMapper = SimpleMapper.builder().build();
9797
Map<String, Object> asMap = simpleMapper.map().fromJson(bytes);
9898

99-
assertThat((String)asMap.get("exception")).startsWith("j.l.NullPointerException: Cannot invoke \"String.toUpperCase()\"");
99+
assertThat((String)asMap.get("exception")).startsWith("j.l.NullPointerException: ");
100100
}
101101

102102
Throwable createThrowable() {

0 commit comments

Comments
 (0)