X-Git-Url: https://gerrit.onap.org/r/gitweb?p=policy%2Fengine.git;a=blobdiff_plain;f=ONAP-PAP-REST%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Fpolicy%2Fpap%2Fxacml%2Frest%2Fservice%2FImportServiceTest.java;fp=ONAP-PAP-REST%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Fpolicy%2Fpap%2Fxacml%2Frest%2Fservice%2FImportServiceTest.java;h=cee67dd518fc819a7b1c50eeab505ccee3a4c2aa;hp=b7d6bacbdff4cc2d2501acc2c4a897cc5d736525;hb=7a172d1c6922851e7008d1ce2afdf673193699d3;hpb=39db5ecce3151ad42bc0c5433d14b2a81887a4ef diff --git a/ONAP-PAP-REST/src/test/java/org/onap/policy/pap/xacml/rest/service/ImportServiceTest.java b/ONAP-PAP-REST/src/test/java/org/onap/policy/pap/xacml/rest/service/ImportServiceTest.java index b7d6bacbd..cee67dd51 100644 --- a/ONAP-PAP-REST/src/test/java/org/onap/policy/pap/xacml/rest/service/ImportServiceTest.java +++ b/ONAP-PAP-REST/src/test/java/org/onap/policy/pap/xacml/rest/service/ImportServiceTest.java @@ -23,11 +23,14 @@ package org.onap.policy.pap.xacml.rest.service; import static org.assertj.core.api.Assertions.assertThatCode; import static org.assertj.core.api.Assertions.assertThatThrownBy; import static org.junit.Assert.assertEquals; - import com.mockrunner.mock.web.MockHttpServletRequest; import com.mockrunner.mock.web.MockHttpServletResponse; +import java.io.File; +import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; +import org.apache.commons.io.FileUtils; +import org.junit.AfterClass; import org.junit.Test; public class ImportServiceTest { @@ -74,4 +77,13 @@ public class ImportServiceTest { HttpServletResponse response = new MockHttpServletResponse(); assertThatThrownBy(() -> service.doImportMicroServicePut(request, response)).isInstanceOf(Exception.class); } + + @AfterClass + public static void tearDown(){ + try { + FileUtils.deleteDirectory(new File("ExtractDir")); + } catch (IOException e) { + e.printStackTrace(); + } + } }