re base code
[sdc.git] / utils / DmaapPublisher / src / test / java / org / openecomp / sdc / dmaap / DmaapPublisherTest.java
1 package org.openecomp.sdc.dmaap;
2
3 import org.junit.Test;
4
5 import java.io.File;
6
7 import static org.junit.Assert.*;
8
9 public class DmaapPublisherTest {
10     @Test
11     public void main() throws Exception {
12         File resource = new File("src/test/resources");
13         String absPath = resource.getAbsolutePath();
14
15         String msg = "{\"operationalEnvironmentId\":\"12345\",\"operationalEnvironmentName\":\"Op_Env_Name\",\"operationalEnvironmentType\":\"ECOMP\",\"tenantContext\":\"Test\",\"workloadContext\":\"VNF_E2E-IST\",\"action\":\"CREATE\"}";
16         String cmd = "-cr 5 "+ "-notification=" + msg+ " -path "+absPath+" -yaml catalogMgmtTest.yaml" ;
17         DmaapPublisher.main( cmd.split(" ") );
18         Thread.sleep(10000);
19     }
20 }