Add tests, add docu, use subpackage.

This commit is contained in:
Stephan Schnabel 2020-08-13 18:32:41 +02:00
parent 333f3302ec
commit c4b1d1d2f6
Signed by: stephan.schnabel
GPG key ID: F74FE2422AA07290
10 changed files with 345 additions and 110 deletions

View 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();
}
}