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;
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 {
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 {
.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 = "{}";