본문으로 건너뛰기
버전: v1.1.x

기능

Fixture monkey supports Jackson 3 with the Fixture Monkey Jackson3 plugin.

Jackson 3 requires JDK 17 or higher. If you are using JDK 8, please use the Jackson Plugin instead.

  • Supports the use of Jackson3ObjectArbitraryIntrospector as the default introspector to create objects using the Jackson 3 object mapper.
  • Supports Jackson Annotations such as, @JsonIgnore, @JsonProperty

Dependencies

Gradle

testImplementation("com.navercorp.fixturemonkey:fixture-monkey-jackson3:1.1.16")

Maven

<dependency>
<groupId>com.navercorp.fixturemonkey</groupId>
<artifactId>fixture-monkey-jackson3</artifactId>
<version>1.1.16</version>
<scope>test</scope>
</dependency>

Plugin

FixtureMonkey fixtureMonkey = FixtureMonkey.builder()
.plugin(new Jackson3Plugin())
.build();

Pass the object mapper to the Jackson3Plugin constructor if you are using Jackson 3 with a custom object mapper.

ObjectMapper objectMapper = JsonMapper.builder()
.findAndAddModules()
.build();

FixtureMonkey fixtureMonkey = FixtureMonkey.builder()
.plugin(new Jackson3Plugin(objectMapper))
.build();