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;
public void testSetNotificationMessage() {
Transaction transaction = new Transaction(mockWorkingMemory, CL_NAME, UUID.randomUUID(), createControlLoop());
transaction.setNotificationMessage("test");
+ assertEquals("test", transaction.getNotificationMessage());
}
@Test
GuardAdjunct adjunct2 = new GuardAdjunct();
transaction.putAdjunct(adjunct2);
transaction.cleanup();
+ assertThatCode(() -> transaction.cleanup()).doesNotThrowAnyException();
}
private VirtualControlLoopEvent createControlLoopEvent(UUID requestId, String closedLoopControlName,
* @return the local named object (if available), or the deserialized
* object
*/
- private Object readResolve() throws ObjectStreamException {
+ protected Object readResolve() throws ObjectStreamException {
Adjunct adjunct = getAdjunct();
Object replacementObject;