Last active
December 27, 2017 01:29
-
-
Save b1a9id/17b7e78de77d1ac267a110140d1a5fd0 to your computer and use it in GitHub Desktop.
スタンダードテスト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.junit.jupiter.api.*; | |
@DisplayName("This is standard test.") | |
class StandardTest { | |
@BeforeAll | |
static void beforeAll() { | |
System.out.println("executed before all test just once."); | |
} | |
@BeforeEach | |
void beforeEach() { | |
System.out.println("executed before each test."); | |
} | |
@Test | |
@DisplayName("\uD83C\uDFC0") | |
void test1() { | |
System.out.println("This is test1."); | |
} | |
@Test | |
@Disabled("This is Disabled test.") | |
void test2() { | |
System.out.println("This is test2."); | |
} | |
@Test | |
void test3() { | |
System.out.println("This is test3."); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment