springboot2-junit5-skiptest update

master
Vyacheslav Boyko 2019-07-30 12:26:59 +03:00
parent cc5b5ab75c
commit ebfa9d0d27
1 changed files with 3 additions and 2 deletions

View File

@ -6,15 +6,16 @@ import org.springframework.boot.test.context.SpringBootTest;
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.assertTrue;
@SpringBootTest @SpringBootTest
@TestEnabledPrefix(property = "app.skip.test")
public class SkiptestApplicationTests { public class SkiptestApplicationTests {
@TestEnabled(property = "app.skip.test.first") @TestEnabled(property = "first")
@Test @Test
public void testFirst() { public void testFirst() {
assertTrue(true); assertTrue(true);
} }
@TestEnabled(property = "app.skip.test.second") @TestEnabled(property = "second")
@Test @Test
public void testSecond() { public void testSecond() {
assertTrue(false); assertTrue(false);