From ebfa9d0d2797a9b46942e8a4b02802e0dd4af2e2 Mon Sep 17 00:00:00 2001 From: Vyacheslav Boyko Date: Tue, 30 Jul 2019 12:26:59 +0300 Subject: [PATCH] springboot2-junit5-skiptest update --- .../springboot/junit/skiptest/SkiptestApplicationTests.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/springboot2-junit5-skiptest/src/test/java/com/bvn13/example/springboot/junit/skiptest/SkiptestApplicationTests.java b/springboot2-junit5-skiptest/src/test/java/com/bvn13/example/springboot/junit/skiptest/SkiptestApplicationTests.java index 1ae0d40..ee6c36f 100644 --- a/springboot2-junit5-skiptest/src/test/java/com/bvn13/example/springboot/junit/skiptest/SkiptestApplicationTests.java +++ b/springboot2-junit5-skiptest/src/test/java/com/bvn13/example/springboot/junit/skiptest/SkiptestApplicationTests.java @@ -6,15 +6,16 @@ import org.springframework.boot.test.context.SpringBootTest; import static org.junit.jupiter.api.Assertions.assertTrue; @SpringBootTest +@TestEnabledPrefix(property = "app.skip.test") public class SkiptestApplicationTests { - @TestEnabled(property = "app.skip.test.first") + @TestEnabled(property = "first") @Test public void testFirst() { assertTrue(true); } - @TestEnabled(property = "app.skip.test.second") + @TestEnabled(property = "second") @Test public void testSecond() { assertTrue(false);