This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-beanutils.git
The following commit(s) were added to refs/heads/master by this push: new 362f6f51 Use proper JUnit API 362f6f51 is described below commit 362f6f51dabddf8ea29106b9f6d988a35f77a7f8 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri Mar 22 15:59:11 2024 -0400 Use proper JUnit API --- .../apache/commons/beanutils2/ConstructorUtilsTestCase.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/test/java/org/apache/commons/beanutils2/ConstructorUtilsTestCase.java b/src/test/java/org/apache/commons/beanutils2/ConstructorUtilsTestCase.java index 71a2c7ab..ff19ba7f 100644 --- a/src/test/java/org/apache/commons/beanutils2/ConstructorUtilsTestCase.java +++ b/src/test/java/org/apache/commons/beanutils2/ConstructorUtilsTestCase.java @@ -154,7 +154,7 @@ public class ConstructorUtilsTestCase extends TestCase { final Object obj = ConstructorUtils.invokeConstructor(TestBean.class, args, types); assertNotNull(obj); assertTrue(obj instanceof TestBean); - assertEquals(true, ((TestBean) obj).getBooleanProperty()); + assertTrue( ((TestBean) obj).getBooleanProperty()); assertEquals("TEST", ((TestBean) obj).getStringProperty()); } { @@ -163,7 +163,7 @@ public class ConstructorUtilsTestCase extends TestCase { final Object obj = ConstructorUtils.invokeConstructor(TestBean.class, args, types); assertNotNull(obj); assertTrue(obj instanceof TestBean); - assertEquals(true, ((TestBean) obj).isBooleanSecond()); + assertTrue( ((TestBean) obj).isBooleanSecond()); assertEquals("TEST", ((TestBean) obj).getStringProperty()); } } @@ -187,7 +187,7 @@ public class ConstructorUtilsTestCase extends TestCase { final Object obj = ConstructorUtils.invokeExactConstructor(TestBean.class, Boolean.TRUE); assertNotNull(obj); assertTrue(obj instanceof TestBean); - assertEquals(true, ((TestBean) obj).isBooleanSecond()); + assertTrue( ((TestBean) obj).isBooleanSecond()); } } @@ -206,7 +206,7 @@ public class ConstructorUtilsTestCase extends TestCase { final Object obj = ConstructorUtils.invokeExactConstructor(TestBean.class, args); assertNotNull(obj); assertTrue(obj instanceof TestBean); - assertEquals(true, ((TestBean) obj).isBooleanSecond()); + assertTrue( ((TestBean) obj).isBooleanSecond()); assertEquals("TEST", ((TestBean) obj).getStringProperty()); } } @@ -224,7 +224,7 @@ public class ConstructorUtilsTestCase extends TestCase { final Object obj = ConstructorUtils.invokeExactConstructor(TestBean.class, args, types); assertNotNull(obj); assertTrue(obj instanceof TestBean); - assertEquals(true, ((TestBean) obj).getBooleanProperty()); + assertTrue( ((TestBean) obj).getBooleanProperty()); assertEquals("TEST", ((TestBean) obj).getStringProperty()); } { @@ -233,7 +233,7 @@ public class ConstructorUtilsTestCase extends TestCase { final Object obj = ConstructorUtils.invokeExactConstructor(TestBean.class, args, types); assertNotNull(obj); assertTrue(obj instanceof TestBean); - assertEquals(true, ((TestBean) obj).isBooleanSecond()); + assertTrue( ((TestBean) obj).isBooleanSecond()); assertEquals("TEST", ((TestBean) obj).getStringProperty()); } {