Skip to content

Commit

Permalink
Updated testing for mutations.
Browse files Browse the repository at this point in the history
  • Loading branch information
knighto82 committed Jan 13, 2025
1 parent 1ed1158 commit bb263c4
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,12 @@ class InnerClass {}

@Test
public void testGetFieldNamesExactMatch() {
Set<String> result = VarArgsHelper.getFieldNames(TestClass.class);
class ExactMatchTestClass {
private String field1;
private int field2;
}

Set<String> result = VarArgsHelper.getFieldNames(ExactMatchTestClass.class);

Set<String> expected = new LinkedHashSet<>(Arrays.asList("field1", "field2"));
assertThat("Field names should match exactly.", expected, is(equalTo(result)));
Expand Down

0 comments on commit bb263c4

Please sign in to comment.