Skip to content

Commit 5d009a5

Browse files
PropertyQueryTest: not supported throws Illegal[Argument->State]Exception.
1 parent a24f812 commit 5d009a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/objectbox-java-test/src/test/java/io/objectbox/query/PropertyQueryTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,8 +452,8 @@ private void assertUnsupported(Runnable runnable, String exceptionMessage) {
452452
fail("Should have thrown IllegalArgumentException: " + exceptionMessage);
453453
} catch (Exception e) {
454454
assertTrue(
455-
"Expected IllegalArgumentException, but was " + e.getClass().getSimpleName() + ".",
456-
e instanceof IllegalArgumentException
455+
"Expected IllegalStateException, but was " + e.getClass().getSimpleName() + ".",
456+
e instanceof IllegalStateException
457457
);
458458
assertTrue(
459459
"Expected exception message '" + exceptionMessage + "', but was '" + e.getMessage() + "'.",

0 commit comments

Comments
 (0)