summaryrefslogtreecommitdiffstats
path: root/aai-core/src/test
diff options
context:
space:
mode:
authorParshad Patel <pars.patel@samsung.com>2018-08-22 11:09:49 +0900
committerParshad Patel <pars.patel@samsung.com>2018-08-23 13:09:54 +0900
commit718ebdc7cab68315bfa9d622d3b6932221920dee (patch)
treecb247f5928ce701099fb1fb9e98b3675d70cd80d /aai-core/src/test
parent3b0d3167a2ad458bbe59e0f703b40ef4f4976424 (diff)
Fix sonar issues
Fix use try-with-resources issues Issue-ID: AAI-1368 Change-Id: I267df61915ac1596cc8645c62ccf43eb04fd7ac5 Signed-off-by: Parshad Patel <pars.patel@samsung.com>
Diffstat (limited to 'aai-core/src/test')
-rw-r--r--aai-core/src/test/java/org/onap/aai/util/PojoUtilsTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/aai-core/src/test/java/org/onap/aai/util/PojoUtilsTest.java b/aai-core/src/test/java/org/onap/aai/util/PojoUtilsTest.java
index 3658704e..35065fd5 100644
--- a/aai-core/src/test/java/org/onap/aai/util/PojoUtilsTest.java
+++ b/aai-core/src/test/java/org/onap/aai/util/PojoUtilsTest.java
@@ -23,6 +23,7 @@ import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
+import java.io.IOException;
import java.time.LocalDateTime;
import java.time.Month;
import java.util.ArrayList;
@@ -159,7 +160,7 @@ public class PojoUtilsTest {
}
@Test
- public void testGetXmlFromObject() throws JAXBException {
+ public void testGetXmlFromObject() throws JAXBException, IOException {
NotificationEvent notificationEvent = new NotificationEvent();
notificationEvent.setCambriaPartition("partition");