Skip to content

Commit f3b59b0

Browse files
committed
tests(schema): expand OpenRPCSchemaValidationIT with logging prologue and dynamic examples; align with JUL policy (#29)
1 parent fdd3849 commit f3b59b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@
1616
import java.util.stream.Stream;
1717

1818
import static org.assertj.core.api.Assertions.assertThat;
19+
import static io.github.simbo1905.json.schema.SchemaLogging.LOG;
1920

2021
/// Integration tests: validate OpenRPC documents using a minimal embedded meta-schema.
2122
/// Resources:
2223
/// - Schema: src/test/resources/openrpc/schema.json
2324
/// - Examples: src/test/resources/openrpc/examples/*.json
2425
/// Files containing "-bad-" are intentionally invalid and must fail validation.
25-
public class OpenRPCSchemaValidationIT {
26+
class OpenRPCSchemaValidationIT extends JsonSchemaLoggingConfig {
2627

2728
private static String readResource(String name) throws IOException {
2829
try {
@@ -35,6 +36,7 @@ private static String readResource(String name) throws IOException {
3536

3637
@TestFactory
3738
Stream<DynamicTest> validateOpenRPCExamples() throws Exception {
39+
LOG.info(() -> "TEST: " + getClass().getSimpleName() + "#validateOpenRPCExamples");
3840
// Compile the minimal OpenRPC schema (self-contained, no remote $ref)
3941
String schemaJson = readResource("openrpc/schema.json");
4042
JsonSchema schema = JsonSchema.compile(Json.parse(schemaJson));

0 commit comments

Comments
 (0)