From d61239c41793a48636edeb58709ca6d9a07b89fd Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Mon, 2 Aug 2021 17:54:35 +0200 Subject: [PATCH] Removes BuildTools files after tests have finished --- .../minecraftserverlauncher/utility/JarBuilderTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/java/net/knarcraft/minecraftserverlauncher/utility/JarBuilderTest.java b/src/test/java/net/knarcraft/minecraftserverlauncher/utility/JarBuilderTest.java index ccc29b9..f0a7488 100644 --- a/src/test/java/net/knarcraft/minecraftserverlauncher/utility/JarBuilderTest.java +++ b/src/test/java/net/knarcraft/minecraftserverlauncher/utility/JarBuilderTest.java @@ -2,6 +2,7 @@ package net.knarcraft.minecraftserverlauncher.utility; import net.knarcraft.minecraftserverlauncher.Main; import net.knarcraft.minecraftserverlauncher.userinterface.FakeGUI; +import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.MethodOrderer; import org.junit.jupiter.api.Order; @@ -31,6 +32,11 @@ public class JarBuilderTest { removeBuildToolsFiles(); } + @AfterAll + public static void tearDown() { + removeBuildToolsFiles(); + } + @Test @Order(3) public void buildLatestSpigotJarTest() {