Skip to content

Commit

Permalink
Skip a record test that breaks with nometa
Browse files Browse the repository at this point in the history
  • Loading branch information
niloc132 committed Dec 18, 2024
1 parent c18aa14 commit 7cdd58b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,10 @@ public String toString() {
assertTrue(new InnerRecord() instanceof Comparable);

assertFalse(new InnerRecord().toString().contains("Hello"));
assertTrue(new InnerRecord().toString().startsWith("InnerRecord"));
if (!getClass().getSimpleName().startsWith("Class$")) {
// Skip this test with class metadata enabled, since the class name won't match
assertTrue(new InnerRecord().toString().startsWith("InnerRecord"));
}
assertEquals(0, new InnerRecord().hashCode());
assertEquals(new InnerRecord(), new InnerRecord());

Expand Down

0 comments on commit 7cdd58b

Please sign in to comment.