Removes BuildTools files after tests have finished

This commit is contained in:
Kristian Knarvik 2021-08-02 17:54:35 +02:00
parent 32c17c6005
commit d61239c417

View File

@ -2,6 +2,7 @@ package net.knarcraft.minecraftserverlauncher.utility;
import net.knarcraft.minecraftserverlauncher.Main; import net.knarcraft.minecraftserverlauncher.Main;
import net.knarcraft.minecraftserverlauncher.userinterface.FakeGUI; import net.knarcraft.minecraftserverlauncher.userinterface.FakeGUI;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.MethodOrderer; import org.junit.jupiter.api.MethodOrderer;
import org.junit.jupiter.api.Order; import org.junit.jupiter.api.Order;
@ -31,6 +32,11 @@ public class JarBuilderTest {
removeBuildToolsFiles(); removeBuildToolsFiles();
} }
@AfterAll
public static void tearDown() {
removeBuildToolsFiles();
}
@Test @Test
@Order(3) @Order(3)
public void buildLatestSpigotJarTest() { public void buildLatestSpigotJarTest() {