From e0ca367d46d513b1c5818ba063007262c886a81c Mon Sep 17 00:00:00 2001 From: liaozan <378024053@qq.com> Date: Sat, 7 Oct 2023 23:36:17 +0800 Subject: [PATCH] Add @AfterEach for test classes --- .../src/test/java/ApplicationTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/resources/archetype-resources/__subModuleNamePrefix__-starter/src/test/java/ApplicationTest.java b/src/main/resources/archetype-resources/__subModuleNamePrefix__-starter/src/test/java/ApplicationTest.java index 5f49c09..0005e8d 100644 --- a/src/main/resources/archetype-resources/__subModuleNamePrefix__-starter/src/test/java/ApplicationTest.java +++ b/src/main/resources/archetype-resources/__subModuleNamePrefix__-starter/src/test/java/ApplicationTest.java @@ -1,6 +1,7 @@ package ${package}; import lombok.extern.slf4j.Slf4j; +import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @@ -14,6 +15,11 @@ public class ApplicationTest { } + @AfterEach + void clear() { + + } + @Test void applicationTest() { // write your testcase here -- GitLab