Code Review
/
dmaap
/
buscontroller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "[DMAAP-BC] Avoid Creating duplicate DR Publisher, Subscriber"
[dmaap/buscontroller.git]
/
dmaap-bc
/
src
/
test
/
java
/
org
/
onap
/
dmaap
/
dbcapi
/
service
/
FeedServiceTest.java
diff --git
a/dmaap-bc/src/test/java/org/onap/dmaap/dbcapi/service/FeedServiceTest.java
b/dmaap-bc/src/test/java/org/onap/dmaap/dbcapi/service/FeedServiceTest.java
index
478647b
..
9f169ef
100644
(file)
--- a/
dmaap-bc/src/test/java/org/onap/dmaap/dbcapi/service/FeedServiceTest.java
+++ b/
dmaap-bc/src/test/java/org/onap/dmaap/dbcapi/service/FeedServiceTest.java
@@
-20,7
+20,6
@@
package org.onap.dmaap.dbcapi.service;
import java.util.List;
package org.onap.dmaap.dbcapi.service;
import java.util.List;
-import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.onap.dmaap.dbcapi.model.ApiError;
import org.junit.Before;
import org.junit.Test;
import org.onap.dmaap.dbcapi.model.ApiError;
@@
-29,35
+28,26
@@
import org.onap.dmaap.dbcapi.testframework.ReflectionHarness;
public class FeedServiceTest {
public class FeedServiceTest {
- private static final String fmt = "%24s: %s%n";
-
ReflectionHarness rh = new ReflectionHarness();
FeedService ds;
@Before
public void setUp() throws Exception {
ReflectionHarness rh = new ReflectionHarness();
FeedService ds;
@Before
public void setUp() throws Exception {
+ System.setProperty("ConfigFile", "src/test/resources/dmaapbc.properties");
ds = new FeedService();
}
ds = new FeedService();
}
- @After
- public void tearDown() throws Exception {
- }
-
@Test
public void test1() {
@Test
public void test1() {
-
-
- rh.reflect( "org.onap.dmaap.dbcapi.service.FeedService", "get", null );
-
+ rh.reflect( "org.onap.dmaap.dbcapi.service.FeedService", "get", null );
}
@Test
public void test2() {
String v = "Validate";
rh.reflect( "org.onap.dmaap.dbcapi.service.FeedService", "set", v );
}
@Test
public void test2() {
String v = "Validate";
rh.reflect( "org.onap.dmaap.dbcapi.service.FeedService", "set", v );
-
}
@Test
}
@Test
@@
-86,7
+76,6
@@
public class FeedServiceTest {
@Test
public void test5() {
List<Feed> f = ds.getAllFeeds( "aName", "1.0", "startsWith" );
@Test
public void test5() {
List<Feed> f = ds.getAllFeeds( "aName", "1.0", "startsWith" );
-
}
}
@@
-97,6
+86,4
@@
public class FeedServiceTest {
assert( 200 == err.getCode());
}
assert( 200 == err.getCode());
}
-
-
}
}