* PDF to X * PDF to X * Remove created doc * Code fixes and cleanup for PDF module * Fix web.xml in spring-mvc-web-vs-initializer project * Rollback web.xml * Fixes to PDF article * Merge with main eugen branch * Junit 5 * Fix name of test and modifier
51 lines
1.1 KiB
Java
51 lines
1.1 KiB
Java
package com.baeldung;
|
|
|
|
import java.util.logging.Logger;
|
|
|
|
import org.junit.jupiter.api.AfterAll;
|
|
import org.junit.jupiter.api.AfterEach;
|
|
import org.junit.jupiter.api.BeforeAll;
|
|
import org.junit.jupiter.api.BeforeEach;
|
|
import org.junit.jupiter.api.Disabled;
|
|
import org.junit.jupiter.api.DisplayName;
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
//@RunWith(JUnitPlatform.class)
|
|
public class JUnit5NewFeaturesTest {
|
|
|
|
private static final Logger log = Logger.getLogger(JUnit5NewFeaturesTest.class.getName());
|
|
|
|
@BeforeAll
|
|
static void setup() {
|
|
log.info("@BeforeAll - executes once before all test methods in this class");
|
|
}
|
|
|
|
@BeforeEach
|
|
void init() {
|
|
log.info("@BeforeEach - executes before each test method in this class");
|
|
}
|
|
|
|
@DisplayName("Single test successful")
|
|
@Test
|
|
void testSingleSuccessTest() {
|
|
log.info("Success");
|
|
|
|
}
|
|
|
|
@Test
|
|
@Disabled("Not implemented yet.")
|
|
void testShowSomething() {
|
|
}
|
|
|
|
@AfterEach
|
|
void tearDown() {
|
|
log.info("@AfterEach - executed after each test method.");
|
|
}
|
|
|
|
@AfterAll
|
|
static void done() {
|
|
log.info("@AfterAll - executed after all test methods.");
|
|
}
|
|
|
|
}
|