Skip to content

Commit 800ab8c

Browse files
committed
Add tests for the default McpJsonMapper and JsonSchemaValidator
1 parent e40cd9e commit 800ab8c

File tree

4 files changed

+80
-0
lines changed

4 files changed

+80
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright 2026-2026 the original author or authors.
3+
*/
4+
5+
package io.modelcontextprotocol.json;
6+
7+
import static org.assertj.core.api.Assertions.assertThat;
8+
9+
import org.junit.jupiter.api.Test;
10+
11+
import io.modelcontextprotocol.json.jackson2.JacksonMcpJsonMapper;
12+
13+
class McpJsonMapperTest {
14+
15+
@Test
16+
void shouldUseJackson2Mapper() {
17+
assertThat(McpJsonMapper.getDefault()).isInstanceOf(JacksonMcpJsonMapper.class);
18+
}
19+
20+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright 2026-2026 the original author or authors.
3+
*/
4+
5+
package io.modelcontextprotocol.json.schema;
6+
7+
import static org.assertj.core.api.Assertions.assertThat;
8+
9+
import org.junit.jupiter.api.Test;
10+
11+
import io.modelcontextprotocol.json.schema.jackson2.DefaultJsonSchemaValidator;
12+
13+
class JsonSchemaValidatorTest {
14+
15+
@Test
16+
void shouldUseJackson2Mapper() {
17+
assertThat(JsonSchemaValidator.getDefault()).isInstanceOf(DefaultJsonSchemaValidator.class);
18+
}
19+
20+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright 2026-2026 the original author or authors.
3+
*/
4+
5+
package io.modelcontextprotocol.json;
6+
7+
import static org.assertj.core.api.Assertions.assertThat;
8+
9+
import org.junit.jupiter.api.Test;
10+
11+
import io.modelcontextprotocol.json.jackson3.JacksonMcpJsonMapper;
12+
13+
class McpJsonMapperTest {
14+
15+
@Test
16+
void shouldUseJackson2Mapper() {
17+
assertThat(McpJsonMapper.getDefault()).isInstanceOf(JacksonMcpJsonMapper.class);
18+
}
19+
20+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright 2026-2026 the original author or authors.
3+
*/
4+
5+
package io.modelcontextprotocol.json.schema;
6+
7+
import static org.assertj.core.api.Assertions.assertThat;
8+
9+
import org.junit.jupiter.api.Test;
10+
11+
import io.modelcontextprotocol.json.schema.jackson3.DefaultJsonSchemaValidator;
12+
13+
class JsonSchemaValidatorTest {
14+
15+
@Test
16+
void shouldUseJackson2Mapper() {
17+
assertThat(JsonSchemaValidator.getDefault()).isInstanceOf(DefaultJsonSchemaValidator.class);
18+
}
19+
20+
}

0 commit comments

Comments
 (0)