Skip to content

Commit

Permalink
[hotfix][test] Fix InstantiationUtilTest cannot find assertFalse
Browse files Browse the repository at this point in the history
  • Loading branch information
1996fanrui committed May 11, 2024
1 parent 5af9acb commit ec5364d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@ void testHasNullaryConstructor() {
* Test that {@link InstantiationUtil} class per se does not have a nullary public constructor.
*/
@Test
public void testHasNullaryConstructorFalse() {
assertFalse(InstantiationUtil.hasPublicNullaryConstructor(InstantiationUtil.class));
void testHasNullaryConstructorFalse() {
assertThat(InstantiationUtil.hasPublicNullaryConstructor(InstantiationUtil.class))
.isFalse();
}

@Test
Expand Down

0 comments on commit ec5364d

Please sign in to comment.