From 718ebdc7cab68315bfa9d622d3b6932221920dee Mon Sep 17 00:00:00 2001 From: Parshad Patel Date: Wed, 22 Aug 2018 11:09:49 +0900 Subject: Fix sonar issues Fix use try-with-resources issues Issue-ID: AAI-1368 Change-Id: I267df61915ac1596cc8645c62ccf43eb04fd7ac5 Signed-off-by: Parshad Patel --- aai-core/src/test/java/org/onap/aai/util/PojoUtilsTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'aai-core/src/test') 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"); -- cgit 1.2.3-korg