Code Review
/
policy
/
engine.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Remove insecure dependency on PolicyEngineAPI
[policy/engine.git]
/
PolicyEngineAPI
/
src
/
test
/
java
/
org
/
onap
/
policy
/
std
/
test
/
ManualClientEndTest.java
diff --git
a/PolicyEngineAPI/src/test/java/org/onap/policy/std/test/ManualClientEndTest.java
b/PolicyEngineAPI/src/test/java/org/onap/policy/std/test/ManualClientEndTest.java
index
2ae522c
..
b87fa74
100644
(file)
--- a/
PolicyEngineAPI/src/test/java/org/onap/policy/std/test/ManualClientEndTest.java
+++ b/
PolicyEngineAPI/src/test/java/org/onap/policy/std/test/ManualClientEndTest.java
@@
-23,6
+23,9
@@
package org.onap.policy.std.test;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
+import java.net.URI;
+import java.net.URL;
+
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
@@
-45,8
+48,9
@@
public class ManualClientEndTest {
@Test
public void testManualClientEnd_1()
throws Exception {
@Test
public void testManualClientEnd_1()
throws Exception {
- ManualClientEnd result = new ManualClientEnd();
- assertNotNull(result);
+ ManualClientEnd mce = new ManualClientEnd(new URI("http://www.onap.org"));
+ assertNotNull(mce);
+ mce.close();
// add additional test code here
}
// add additional test code here
}
@@
-79,7
+83,7
@@
public class ManualClientEndTest {
@Test
public void testStart_1()
throws Exception {
@Test
public void testStart_1()
throws Exception {
- String url = "";
+ String url = "
This is not a URL
";
ManualClientEnd.start(url);
ManualClientEnd.start(url);