summaryrefslogtreecommitdiffstats
path: root/src/test/java/org
diff options
context:
space:
mode:
authormark.j.leonard <mark.j.leonard@gmail.com>2019-04-03 11:47:34 +0100
committermark.j.leonard <mark.j.leonard@gmail.com>2019-04-03 11:47:34 +0100
commit01ade25ca96595b529842195d446a8608333bd43 (patch)
treebe2d7f4ca665e49585e949646f2ff0b8ef71e9db /src/test/java/org
parent77565ad85e22807027c743d119fe9bcd92247de5 (diff)
Delete temp file in FileWatcher test
Ensure the temporary file is deleted after the test completes. Change-Id: I25fbab4c28d9489df0ed9b6cb74a068873aa9854 Issue-ID: AAI-2280 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
Diffstat (limited to 'src/test/java/org')
-rw-r--r--src/test/java/org/onap/aai/babel/TestAuthFileWatcher.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/java/org/onap/aai/babel/TestAuthFileWatcher.java b/src/test/java/org/onap/aai/babel/TestAuthFileWatcher.java
index e213e15..4efb03e 100644
--- a/src/test/java/org/onap/aai/babel/TestAuthFileWatcher.java
+++ b/src/test/java/org/onap/aai/babel/TestAuthFileWatcher.java
@@ -74,6 +74,7 @@ public class TestAuthFileWatcher {
} catch (AAIAuthException e) {
assertThat(e.getMessage(), containsString("Error processing Auth policy file"));
}
+ file.deleteOnExit();
Mockito.when(mockFile.lastModified()).thenReturn(1000L);
task.run();
}