Skip to content

Instantly share code, notes, and snippets.

@b1a9id
Last active December 27, 2017 01:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save b1a9id/17b7e78de77d1ac267a110140d1a5fd0 to your computer and use it in GitHub Desktop.
Save b1a9id/17b7e78de77d1ac267a110140d1a5fd0 to your computer and use it in GitHub Desktop.
スタンダードテスト
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