Skip to content

Commit 912d5e0

Browse files
authored
Revert ClientTest.java
1 parent 20f563d commit 912d5e0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/test/java/com/meilisearch/integration/ClientTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,7 @@ public void testTransientFieldExclusion() throws MeilisearchException {
321321
new GsonBuilder().excludeFieldsWithModifiers(Modifier.STATIC).create();
322322

323323
// TODO: Throws StackOverflowError on JDK 1.8, but InaccessibleObjectException on JDK9+
324-
Assertions.assertThrows(
325-
Exception.class,
326-
() -> gsonWithTransient.toJson(test)); // accommodating upgrade to jdk 11
324+
Assertions.assertThrows(StackOverflowError.class, () -> gsonWithTransient.toJson(test));
327325
Assertions.assertDoesNotThrow(() -> gson.toJson(test));
328326
}
329327
}

0 commit comments

Comments
 (0)