Add tests, add docu, use subpackage.
This commit is contained in:
parent
333f3302ec
commit
c4b1d1d2f6
10 changed files with 345 additions and 110 deletions
25
src/test/java/io/kokuwa/micronaut/logging/AbstractTest.java
Normal file
25
src/test/java/io/kokuwa/micronaut/logging/AbstractTest.java
Normal file
|
@ -0,0 +1,25 @@
|
|||
package io.kokuwa.micronaut.logging;
|
||||
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.MethodOrderer.Alphanumeric;
|
||||
import org.junit.jupiter.api.TestMethodOrder;
|
||||
import org.slf4j.MDC;
|
||||
|
||||
import io.micronaut.test.annotation.MicronautTest;
|
||||
|
||||
/**
|
||||
* Base for tests regarding logging.
|
||||
*
|
||||
* @author Stephan Schnabel
|
||||
*/
|
||||
@MicronautTest
|
||||
@TestMethodOrder(Alphanumeric.class)
|
||||
public abstract class AbstractTest {
|
||||
|
||||
@BeforeEach
|
||||
@AfterEach
|
||||
void setUpMdc() {
|
||||
MDC.clear();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue