diff options
Diffstat (limited to 'catalog-be/src/test/java/org/openecomp/sdc/be/auditing/impl/distribution/AuditDistribStatusEventFactoryTest.java')
-rw-r--r-- | catalog-be/src/test/java/org/openecomp/sdc/be/auditing/impl/distribution/AuditDistribStatusEventFactoryTest.java | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/auditing/impl/distribution/AuditDistribStatusEventFactoryTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/auditing/impl/distribution/AuditDistribStatusEventFactoryTest.java new file mode 100644 index 0000000000..a9b5e68394 --- /dev/null +++ b/catalog-be/src/test/java/org/openecomp/sdc/be/auditing/impl/distribution/AuditDistribStatusEventFactoryTest.java @@ -0,0 +1,35 @@ +package org.openecomp.sdc.be.auditing.impl.distribution; + +import org.junit.Test; +import org.openecomp.sdc.be.resources.data.auditing.AuditingGenericEvent; +import org.openecomp.sdc.be.resources.data.auditing.model.CommonAuditData; +import org.openecomp.sdc.be.resources.data.auditing.model.CommonAuditData.Builder; + +public class AuditDistribStatusEventFactoryTest { + + private AuditDistribStatusEventFactory createTestSubject() { + Builder newBuilder = CommonAuditData.newBuilder(); + CommonAuditData build = newBuilder.build(); + return new AuditDistribStatusEventFactory(build, "", "", "", "", ""); + } + + @Test + public void testGetLogMessage() throws Exception { + AuditDistribStatusEventFactory testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLogMessage(); + } + + @Test + public void testGetDbEvent() throws Exception { + AuditDistribStatusEventFactory testSubject; + AuditingGenericEvent result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDbEvent(); + } +}
\ No newline at end of file |