Skip to content

Commit c88bad4

Browse files
committed
wip
1 parent e09f7e8 commit c88bad4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

json-java21-schema/src/test/java/io/github/simbo1905/json/schema/JsonSchemaLoggingConfig.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package io.github.simbo1905.json.schema;
22

33
import org.junit.jupiter.api.BeforeAll;
4+
import org.junit.jupiter.api.BeforeEach;
5+
import org.junit.jupiter.api.TestInfo;
46
import java.util.Locale;
57
import java.util.logging.*;
68

@@ -41,4 +43,11 @@ static void enableJulDebug() {
4143
() -> "json.schema.test.resources set to " + base);
4244
}
4345
}
46+
47+
@BeforeEach
48+
void announce(TestInfo info) {
49+
final String cls = info.getTestClass().map(Class::getSimpleName).orElse("UnknownTest");
50+
final String method = info.getTestMethod().map(java.lang.reflect.Method::getName).orElse(info.getDisplayName());
51+
io.github.simbo1905.json.schema.SchemaLogging.LOG.info(() -> "TEST: " + cls + "#" + method);
52+
}
4453
}

0 commit comments

Comments
 (0)