summaryrefslogtreecommitdiffstats
path: root/controlloop/m2/base/src/test
diff options
context:
space:
mode:
authorTaka Cho <takamune.cho@att.com>2020-06-29 17:12:35 -0400
committerTakamune Cho <takamune.cho@att.com>2020-06-30 13:25:22 +0000
commit8f6036afef6a2047000888925579cac75c9c87e1 (patch)
treebf678294cc3ad96eae92c7c3370d88702904e6a0 /controlloop/m2/base/src/test
parentc2e0698897c060a91a5212f8f42d8aa2a9b96e65 (diff)
sonar issue - drools apps
- elevate the visibility of readResolve - test case without assertions Issue-ID: POLICY-2616 Change-Id: Ifde4b8c5e1281f8625a1203858fbe0467defe353 Signed-off-by: Taka Cho <takamune.cho@att.com>
Diffstat (limited to 'controlloop/m2/base/src/test')
-rw-r--r--controlloop/m2/base/src/test/java/org/onap/policy/m2/base/TransactionTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/controlloop/m2/base/src/test/java/org/onap/policy/m2/base/TransactionTest.java b/controlloop/m2/base/src/test/java/org/onap/policy/m2/base/TransactionTest.java
index c5fa6befd..9158a6f52 100644
--- a/controlloop/m2/base/src/test/java/org/onap/policy/m2/base/TransactionTest.java
+++ b/controlloop/m2/base/src/test/java/org/onap/policy/m2/base/TransactionTest.java
@@ -20,6 +20,7 @@
package org.onap.policy.m2.base;
+import static org.assertj.core.api.Assertions.assertThatCode;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
@@ -320,6 +321,7 @@ public class TransactionTest {
public void testSetNotificationMessage() {
Transaction transaction = new Transaction(mockWorkingMemory, CL_NAME, UUID.randomUUID(), createControlLoop());
transaction.setNotificationMessage("test");
+ assertEquals("test", transaction.getNotificationMessage());
}
@Test
@@ -345,6 +347,7 @@ public class TransactionTest {
GuardAdjunct adjunct2 = new GuardAdjunct();
transaction.putAdjunct(adjunct2);
transaction.cleanup();
+ assertThatCode(() -> transaction.cleanup()).doesNotThrowAnyException();
}
private VirtualControlLoopEvent createControlLoopEvent(UUID requestId, String closedLoopControlName,