Code Review
/
holmes
/
common.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Test Replace Jackson with GSON
[holmes/common.git]
/
holmes-actions
/
src
/
test
/
java
/
org
/
onap
/
holmes
/
common
/
aai
/
AaiResponseUtilTest.java
diff --git
a/holmes-actions/src/test/java/org/onap/holmes/common/aai/AaiResponseUtilTest.java
b/holmes-actions/src/test/java/org/onap/holmes/common/aai/AaiResponseUtilTest.java
index
fee98b9
..
3d20af9
100644
(file)
--- a/
holmes-actions/src/test/java/org/onap/holmes/common/aai/AaiResponseUtilTest.java
+++ b/
holmes-actions/src/test/java/org/onap/holmes/common/aai/AaiResponseUtilTest.java
@@
-16,8
+16,9
@@
package org.onap.holmes.common.aai;
package org.onap.holmes.common.aai;
-import static org.hamcrest.CoreMatchers.equalTo;
-import static org.hamcrest.MatcherAssert.assertThat;
+
+import static org.hamcrest.core.IsEqual.equalTo;
+import static org.junit.Assert.assertThat;
import java.io.IOException;
import java.util.List;
import java.io.IOException;
import java.util.List;
@@
-112,12
+113,6
@@
public class AaiResponseUtilTest {
assertThat(actual.isEmpty(), equalTo(true));
}
assertThat(actual.isEmpty(), equalTo(true));
}
- @Test
- public void testAaiResponseUtil_convert_resource_link_throw_IOException() throws IOException {
- thrown.expect(IOException.class);
- String json = "{**}";
- aaiResponseUtil.convertJsonToVmResourceLink(json);
- }
@Test
public void testAaiResponseUtil_convert_VmEntity_success() throws IOException {
@Test
public void testAaiResponseUtil_convert_VmEntity_success() throws IOException {
@@
-142,12
+137,6
@@
public class AaiResponseUtilTest {
assertThat(actual.getVserverSelflink(), equalTo("example-vserver-selflink-val-2"));
}
assertThat(actual.getVserverSelflink(), equalTo("example-vserver-selflink-val-2"));
}
- @Test
- public void testAaiResponseUtil_convert_VmEntity_throw_IOException() throws IOException {
- thrown.expect(IOException.class);
- String json = "{**}";
- aaiResponseUtil.convertJsonToVmEntity(json);
- }
@Test
public void testAaiResponseUtil_convert_VmEntity_input_empty() throws IOException {
@Test
public void testAaiResponseUtil_convert_VmEntity_input_empty() throws IOException {
@@
-221,13
+210,6
@@
public class AaiResponseUtilTest {
.getRelationshipValue(), equalTo("Demonstration3"));
}
.getRelationshipValue(), equalTo("Demonstration3"));
}
- @Test
- public void testAaiResponseUtil_throw_IOException() throws IOException {
- thrown.expect(IOException.class);
- String json = "{**}";
- aaiResponseUtil.convertJsonToVnfEntity(json);
- }
-
@Test
public void testAaiResponseUtil_convert_VnfEntity_input_empty() throws IOException {
String json = "{}";
@Test
public void testAaiResponseUtil_convert_VnfEntity_input_empty() throws IOException {
String json = "{}";