diff options
author | uj426b <uj426b@att.com> | 2020-05-13 18:41:47 -0400 |
---|---|---|
committer | uj426b <uj426b@att.com> | 2020-05-14 16:07:35 -0400 |
commit | 7a172d1c6922851e7008d1ce2afdf673193699d3 (patch) | |
tree | 35a0b1364daabc806d0e6f03e61a1831199a4c96 /POLICY-SDK-APP/src/test | |
parent | 39db5ecce3151ad42bc0c5433d14b2a81887a4ef (diff) |
Fix Junit to clean up file/directory
Change-Id: Ib29b3b708bd28e333822d4c2b9db44e33f8e395f
Issue-ID: POLICY-2496
Signed-off-by: uj426b <uj426b@att.com>
Diffstat (limited to 'POLICY-SDK-APP/src/test')
-rw-r--r-- | POLICY-SDK-APP/src/test/java/org/onap/policy/admin/PolicyManagerServletTest.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/POLICY-SDK-APP/src/test/java/org/onap/policy/admin/PolicyManagerServletTest.java b/POLICY-SDK-APP/src/test/java/org/onap/policy/admin/PolicyManagerServletTest.java index e349d53ac..c3b98f525 100644 --- a/POLICY-SDK-APP/src/test/java/org/onap/policy/admin/PolicyManagerServletTest.java +++ b/POLICY-SDK-APP/src/test/java/org/onap/policy/admin/PolicyManagerServletTest.java @@ -50,6 +50,7 @@ import org.apache.commons.fileupload.FileItem; import org.apache.commons.io.IOUtils; import org.json.JSONArray; import org.json.JSONObject; +import org.junit.AfterClass; import org.junit.Before; import org.junit.FixMethodOrder; import org.junit.Test; @@ -90,6 +91,16 @@ public class PolicyManagerServletTest extends Mockito { private MockHttpServletResponse response; /** + * Delete test File. + * + */ + @AfterClass + public static void tearDown() { + File destroyFile = new File("testFileName.xls"); + destroyFile.deleteOnExit(); + } + + /** * setUp. * * @throws Exception should not get one |