diff options
author | Murali-P <murali.p@huawei.com> | 2018-03-09 10:54:43 +0530 |
---|---|---|
committer | Murali-P <murali.p@huawei.com> | 2018-03-09 10:54:43 +0530 |
commit | 4a1cd7d20355ccf09b1d6ae133ea2a3702416ffd (patch) | |
tree | 8db1e471aaaf036b3302b0c678c678e0867c3b57 /vnfmarket-be/vnf-sdk-marketplace/src/test | |
parent | f091c83dd2a68711ba603ffc7ef2fe4b1c69ec62 (diff) |
Remove jackson to avoid security issues
Fix security issues raised by LF
Issue-ID: VNFSDK-161
Change-Id: I9cd93c56897b63e6153da06d11fc9b39a20f541b
Signed-off-by: Murali-P <murali.p@huawei.com>
Diffstat (limited to 'vnfmarket-be/vnf-sdk-marketplace/src/test')
-rw-r--r-- | vnfmarket-be/vnf-sdk-marketplace/src/test/java/org/onap/vnfsdk/marketplace/resource/PackageResourceTest.java | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/vnfmarket-be/vnf-sdk-marketplace/src/test/java/org/onap/vnfsdk/marketplace/resource/PackageResourceTest.java b/vnfmarket-be/vnf-sdk-marketplace/src/test/java/org/onap/vnfsdk/marketplace/resource/PackageResourceTest.java index 12812006..d1562f8f 100644 --- a/vnfmarket-be/vnf-sdk-marketplace/src/test/java/org/onap/vnfsdk/marketplace/resource/PackageResourceTest.java +++ b/vnfmarket-be/vnf-sdk-marketplace/src/test/java/org/onap/vnfsdk/marketplace/resource/PackageResourceTest.java @@ -35,13 +35,10 @@ import java.util.zip.ZipOutputStream; import javax.ws.rs.core.Response; -import org.apache.ibatis.exceptions.PersistenceException; -import org.codehaus.jackson.JsonNode; import org.glassfish.jersey.media.multipart.FormDataContentDisposition; import org.junit.Before; import org.junit.Test; import org.onap.vnfsdk.marketplace.common.FileUtil; -import org.onap.vnfsdk.marketplace.common.JsonUtil; import org.onap.vnfsdk.marketplace.common.ToolUtil; import org.onap.vnfsdk.marketplace.db.entity.PackageData; import org.onap.vnfsdk.marketplace.db.impl.MarketplaceDaoImpl; @@ -1032,21 +1029,6 @@ public class PackageResourceTest { assertEquals(res, true); } - @Test - public void testToJson() { - List<String> listObj = new ArrayList<String>(); - listObj.add("test"); - String res = JsonUtil.toJson(listObj); - assertNotNull(res); - } - - @Test - public void testfromJson() { - - String carJson = "{ \"brand\" : \"Mercedes\", \"doors\" : 5 }"; - JsonNode res = JsonUtil.fromJson(carJson, JsonNode.class); - assertNotNull(res); - } @Test public void testUnzip() { |