aboutsummaryrefslogtreecommitdiffstats
path: root/utils-test/src/test/java/org/onap/policy/common/utils/test/ThrowablesTesterTest.java
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2018-02-19 10:24:33 -0500
committerJim Hahn <jrh3@att.com>2018-02-19 17:47:55 -0500
commit54800b25c8bcb27725c559e5fe7329dc46daf1a0 (patch)
treeb8f63ad06704705402bb43b96dd4aee20059ec54 /utils-test/src/test/java/org/onap/policy/common/utils/test/ThrowablesTesterTest.java
parent19d3bfa5a1e6f69cde7a5e814b1975330249dcd0 (diff)
Rename utils-test testXxx() methods
Fixed sonar complaints about the testXxx_Yyy() methods in the XxxTester classes. In most cases, they were renamed to testYyy(). The top-level method, test(), was not renamed so-as not to break existing tests that already depend on it. Renamed testStringConstuctor() to testString(). Change-Id: I00e8993c71fa9d9cb83bea82276d9706dd0e7c45 Issue-ID: POLICY-246 Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'utils-test/src/test/java/org/onap/policy/common/utils/test/ThrowablesTesterTest.java')
-rw-r--r--utils-test/src/test/java/org/onap/policy/common/utils/test/ThrowablesTesterTest.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/utils-test/src/test/java/org/onap/policy/common/utils/test/ThrowablesTesterTest.java b/utils-test/src/test/java/org/onap/policy/common/utils/test/ThrowablesTesterTest.java
index ea79dba8..cb8c0ef6 100644
--- a/utils-test/src/test/java/org/onap/policy/common/utils/test/ThrowablesTesterTest.java
+++ b/utils-test/src/test/java/org/onap/policy/common/utils/test/ThrowablesTesterTest.java
@@ -28,50 +28,50 @@ public class ThrowablesTesterTest {
@Test
public void test() {
- assertEquals(2, new ThrowablesTester().testThrowable(SimpleThrowable.class));
- assertEquals(5, new ThrowablesTester().testThrowable(StaticThrowable.class));
+ assertEquals(2, new ThrowablesTester().testAllThrowable(SimpleThrowable.class));
+ assertEquals(5, new ThrowablesTester().testAllThrowable(StaticThrowable.class));
}
@Test
public void testNoConstructorsThrowable() {
// this will not throw an error, but it should return 0, as there are
// no matching constructors
- assertEquals(0, new ThrowablesTester().testThrowable(NoConstructorsThrowable.class));
+ assertEquals(0, new ThrowablesTester().testAllThrowable(NoConstructorsThrowable.class));
}
@Test(expected = AssertionError.class)
public void testIgnoreMessageThrowable() {
- new ThrowablesTester().testThrowable(IgnoreMessageThrowable.class);
+ new ThrowablesTester().testAllThrowable(IgnoreMessageThrowable.class);
}
@Test(expected = AssertionError.class)
public void testIgnoreCauseThrowable() {
- new ThrowablesTester().testThrowable(IgnoreCauseThrowable.class);
+ new ThrowablesTester().testAllThrowable(IgnoreCauseThrowable.class);
}
@Test(expected = AssertionError.class)
public void testAlwaysSuppressThrowable() {
- new ThrowablesTester().testThrowable(AlwaysSuppressThrowable.class);
+ new ThrowablesTester().testAllThrowable(AlwaysSuppressThrowable.class);
}
@Test(expected = AssertionError.class)
public void testNeverSuppressThrowable() {
- new ThrowablesTester().testThrowable(NeverSuppressThrowable.class);
+ new ThrowablesTester().testAllThrowable(NeverSuppressThrowable.class);
}
@Test(expected = AssertionError.class)
public void testAlwaysWritableThrowable() {
- new ThrowablesTester().testThrowable(AlwaysWritableThrowable.class);
+ new ThrowablesTester().testAllThrowable(AlwaysWritableThrowable.class);
}
@Test(expected = AssertionError.class)
public void testNeverWritableThrowable() {
- new ThrowablesTester().testThrowable(NeverWritableThrowable.class);
+ new ThrowablesTester().testAllThrowable(NeverWritableThrowable.class);
}
@Test(expected = ConstructionError.class)
public void testThrowInstantiationException() {
- new ThrowablesTester().testThrowable(ThrowInstantiationException.class);
+ new ThrowablesTester().testAllThrowable(ThrowInstantiationException.class);
}
/**