aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src
diff options
context:
space:
mode:
authorEylon Malin <eylon.malin@intl.att.com>2019-09-04 09:34:37 +0300
committerIttay Stern <ittay.stern@att.com>2019-09-04 08:55:24 +0000
commit8058426940ef467c86507fa9ff52101685ccef3a (patch)
tree411cc5f5fcd23d88bd242497ca780003ca102209 /vid-app-common/src
parent1ba4cd060d6c021d426779427047f3382d5c2012 (diff)
add missing test annotation
to test extractPortMirroringConfigData_ givenAaiResponseWithoutRegionIdName_yieldException Issue-ID: VID-378 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: I5ae29bc427b1b0d6a832b10b52102364e789e5ae
Diffstat (limited to 'vid-app-common/src')
-rw-r--r--vid-app-common/src/test/java/org/onap/vid/aai/AaiResponseTranslatorTest.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/vid-app-common/src/test/java/org/onap/vid/aai/AaiResponseTranslatorTest.java b/vid-app-common/src/test/java/org/onap/vid/aai/AaiResponseTranslatorTest.java
index 045488605..c85c96b6d 100644
--- a/vid-app-common/src/test/java/org/onap/vid/aai/AaiResponseTranslatorTest.java
+++ b/vid-app-common/src/test/java/org/onap/vid/aai/AaiResponseTranslatorTest.java
@@ -21,18 +21,19 @@
package org.onap.vid.aai;
+import static org.hamcrest.CoreMatchers.containsString;
+import static org.hamcrest.CoreMatchers.instanceOf;
+import static org.hamcrest.CoreMatchers.is;
+import static org.hamcrest.MatcherAssert.assertThat;
+
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
+import java.io.IOException;
import org.onap.vid.aai.AaiResponseTranslator.PortMirroringConfigData;
import org.onap.vid.aai.AaiResponseTranslator.PortMirroringConfigDataError;
import org.onap.vid.aai.AaiResponseTranslator.PortMirroringConfigDataOk;
import org.testng.annotations.Test;
-import java.io.IOException;
-
-import static org.hamcrest.CoreMatchers.*;
-import static org.hamcrest.MatcherAssert.assertThat;
-
public class AaiResponseTranslatorTest {
private static final ObjectMapper objectMapper = new ObjectMapper();
@@ -116,6 +117,7 @@ public class AaiResponseTranslatorTest {
}
+ @Test
public void extractPortMirroringConfigData_givenAaiResponseWithoutRegionIdName_yieldException() throws IOException {
final JsonNode aaiPayload = objectMapper.readTree("" +