X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=dmaap-bc%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Fdmaap%2Fdbcapi%2Fresources%2FDcaeLocationResourceTest.java;h=20023e43244a614337af2cb22c3e96c6584bd048;hb=7de14af42606ea0afbb376e6f05de793108d555b;hp=ff0792714d4bb74817bf78f51782507c154e659b;hpb=71d3d0925874247de5e657821638b1c08360f571;p=dmaap%2Fbuscontroller.git diff --git a/dmaap-bc/src/test/java/org/onap/dmaap/dbcapi/resources/DcaeLocationResourceTest.java b/dmaap-bc/src/test/java/org/onap/dmaap/dbcapi/resources/DcaeLocationResourceTest.java index ff07927..20023e4 100644 --- a/dmaap-bc/src/test/java/org/onap/dmaap/dbcapi/resources/DcaeLocationResourceTest.java +++ b/dmaap-bc/src/test/java/org/onap/dmaap/dbcapi/resources/DcaeLocationResourceTest.java @@ -19,23 +19,18 @@ */ package org.onap.dmaap.dbcapi.resources; -import org.onap.dmaap.dbcapi.model.*; -import org.onap.dmaap.dbcapi.testframework.DmaapObjectFactory; - -import static org.junit.Assert.*; - -import org.junit.After; -import org.junit.Before; -import org.junit.Test; +import static org.junit.Assert.assertTrue; -import org.glassfish.jersey.test.JerseyTest; -import org.glassfish.jersey.server.ResourceConfig; import javax.ws.rs.client.Entity; import javax.ws.rs.core.Application; -import javax.ws.rs.core.Response; import javax.ws.rs.core.MediaType; -import javax.ws.rs.Path; -import javax.ws.rs.GET; +import javax.ws.rs.core.Response; +import org.glassfish.jersey.server.ResourceConfig; +import org.glassfish.jersey.test.JerseyTest; +import org.junit.BeforeClass; +import org.junit.Test; +import org.onap.dmaap.dbcapi.model.DcaeLocation; +import org.onap.dmaap.dbcapi.testframework.DmaapObjectFactory; public class DcaeLocationResourceTest extends JerseyTest { @@ -47,21 +42,10 @@ public class DcaeLocationResourceTest extends JerseyTest { return new ResourceConfig( DcaeLocationResource.class ); } - private static final String fmt = "%24s: %s%n"; - - - -/* may conflict with test framework! - @Before - public void setUp() throws Exception { - } - - @After - public void tearDown() throws Exception { + @BeforeClass + public static void setUpClass(){ + System.setProperty("ConfigFile", "src/test/resources/dmaapbc.properties"); } -*/ - - @Test public void GetTest() { @@ -122,8 +106,5 @@ public class DcaeLocationResourceTest extends JerseyTest { System.out.println( "DELETE dcaeLocation resp=" + resp.getStatus() + " " + resp.readEntity( String.class ) ); assertTrue( resp.getStatus() == 204 ); } - - - }