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;
@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);