Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Oct 3, 2023
1 parent 557181c commit f804962
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ public void testExceptionThrowFromClone() {
fail("Non-public bean - retrieving the cause threw " + e2);
}
assertNotNull("Non-public bean cause null", cause);
assertEquals("Non-public bean cause", IllegalAccessException.class, cause.getClass());
assertEquals("Non-public bean cause", NoSuchMethodException.class, cause.getClass());
}

// Test cloning a bean that throws exception
Expand Down Expand Up @@ -508,7 +508,7 @@ public void testExceptionThrowFromClear() {
fail("Retrieving the cause threw " + e2);
}
assertNotNull("Cause null", cause);
assertEquals("Cause", IllegalAccessException.class, cause.getClass());
assertEquals("Cause", NoSuchMethodException.class, cause.getClass());
}
}

Expand Down

0 comments on commit f804962

Please sign in to comment.