From a5445100050e49e83f73424198d73cd72d672a4d Mon Sep 17 00:00:00 2001 From: Michael Lando Date: Sun, 4 Mar 2018 14:53:33 +0200 Subject: Sync Integ to Master Change-Id: I71e3acc26fa612127756ac04073a522b9cc6cd74 Issue-ID: SDC-977 Signed-off-by: Gitelman, Tal (tg851x) --- .../openecomp/sdc/dmaap/DmaapPublisherTest.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 utils/DmaapPublisher/src/test/java/org/openecomp/sdc/dmaap/DmaapPublisherTest.java (limited to 'utils/DmaapPublisher/src/test/java') diff --git a/utils/DmaapPublisher/src/test/java/org/openecomp/sdc/dmaap/DmaapPublisherTest.java b/utils/DmaapPublisher/src/test/java/org/openecomp/sdc/dmaap/DmaapPublisherTest.java new file mode 100644 index 0000000000..19dbdeaed4 --- /dev/null +++ b/utils/DmaapPublisher/src/test/java/org/openecomp/sdc/dmaap/DmaapPublisherTest.java @@ -0,0 +1,22 @@ +package org.openecomp.sdc.dmaap; + +import org.junit.Test; + +import java.io.File; +import java.net.URL; +import java.nio.file.Paths; + +import static org.junit.Assert.*; + +public class DmaapPublisherTest { + @Test + public void main() throws Exception { + File resource = new File("src/test/resources"); + String absPath = resource.getAbsolutePath(); + + String msg = "{\"operationalEnvironmentId\":\"12345\",\"operationalEnvironmentName\":\"Op_Env_Name\",\"operationalEnvironmentType\":\"ECOMP\",\"tenantContext\":\"Test\",\"workloadContext\":\"VNF_E2E-IST\",\"action\":\"CREATE\"}"; + String cmd = "-cr 5 "+ "-notification=" + msg+ " -path "+absPath+" -yaml catalogMgmtTest.yaml" ; + DmaapPublisher.main( cmd.split(" ") ); + Thread.sleep(10000); + } +} \ No newline at end of file -- cgit 1.2.3-korg