From 1c93581b0e89cf9e06862b5a33c0e0795fee3a97 Mon Sep 17 00:00:00 2001 From: lincmba Date: Thu, 2 Nov 2023 15:56:28 +0300 Subject: [PATCH] delete temporary files --- .../java/org/smartregister/command/TranslateCommandTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/efsity/src/test/java/org/smartregister/command/TranslateCommandTest.java b/efsity/src/test/java/org/smartregister/command/TranslateCommandTest.java index a3844a2b..9a465091 100644 --- a/efsity/src/test/java/org/smartregister/command/TranslateCommandTest.java +++ b/efsity/src/test/java/org/smartregister/command/TranslateCommandTest.java @@ -66,6 +66,9 @@ public void testRunExtract() throws IOException { // Compare the contents of the two files assertEquals(existingProperties, newProperties, "File contents are similar."); + // Clean up temporary resources + tempRawQuestionnaire.toFile().delete(); + tempDefaultPropertiesPath.toFile().delete(); } @Test @@ -93,5 +96,6 @@ public void testRunMerge() throws IOException { // Compare the contents of the two nodes assertEquals(rawQuestionnaire, mergedQuestionnaire, "File merged as expected"); + tempRawQuestionnaire.toFile().delete(); } }