Page not found :(
The page you are looking for doesn't exist or has been moved.
diff --git a/index.min.42f4ff1a1d086557a07eb8906875d4d5a4b1b34177d9387571d39a57d9ecdac44fd54982b422f9c8ac52ce66af0eb3927223317b08896df3cbb9a067784b91f5.js b/index.min.6c466f64e416d347e7444ba7c66982233a4f4b69a58e174b8cfd39fd50acdebaf5ae3f3e63ba0b855b5716cfc8de7b65ea75158ee0034ad834df602bbfdb427c.js similarity index 99% rename from index.min.42f4ff1a1d086557a07eb8906875d4d5a4b1b34177d9387571d39a57d9ecdac44fd54982b422f9c8ac52ce66af0eb3927223317b08896df3cbb9a067784b91f5.js rename to index.min.6c466f64e416d347e7444ba7c66982233a4f4b69a58e174b8cfd39fd50acdebaf5ae3f3e63ba0b855b5716cfc8de7b65ea75158ee0034ad834df602bbfdb427c.js index 5e701a9d4..98eca6180 100644 --- a/index.min.42f4ff1a1d086557a07eb8906875d4d5a4b1b34177d9387571d39a57d9ecdac44fd54982b422f9c8ac52ce66af0eb3927223317b08896df3cbb9a067784b91f5.js +++ b/index.min.6c466f64e416d347e7444ba7c66982233a4f4b69a58e174b8cfd39fd50acdebaf5ae3f3e63ba0b855b5716cfc8de7b65ea75158ee0034ad834df602bbfdb427c.js @@ -29,7 +29,7 @@ The project required thorough testing of complex business requirements, and with For Kotlin environments, you can use fixture-monkey-starter-kotlin Gradle # Add junit-platform-launcher as a runtime dependency. The dependency is optional below Gradle 9, but it will be mandatory from Gradle 9 onwards. 📔 Gradle Offical Documentation ⚠️ Issue -testRuntimeOnly("org.junit.platform:junit-platform-launcher:{version}") testImplementation("com.navercorp.fixturemonkey:fixture-monkey-starter:1.1.0") Maven # <dependency> <groupId>com.navercorp.fixturemonkey</groupId> <artifactId>fixture-monkey-starter</artifactId> <version>1.1.0</version> <scope>test</scope> </dependency> Third party library support # Dependency Description fixture-monkey-jackson Jackson support fixture-monkey-jakarta-validation Jakarta validation support fixture-monkey-javax-validation Javax validation support fixture-monkey-mockito Mockito support fixture-monkey-autoparams Autoparams support `}),e.add({id:5,href:"/v1-1-0/docs/get-started/creating-test-objects/",title:"Creating test objects",description:` Fixture Monkey works in both Java and Kotlin. We have a separate ‘Getting Started’ page for each environment you can use: Java, Java without Lombok, and Kotlin. +testRuntimeOnly("org.junit.platform:junit-platform-launcher:{version}") testImplementation("com.navercorp.fixturemonkey:fixture-monkey-starter:1.1.1") Maven # <dependency> <groupId>com.navercorp.fixturemonkey</groupId> <artifactId>fixture-monkey-starter</artifactId> <version>1.1.1</version> <scope>test</scope> </dependency> Third party library support # Dependency Description fixture-monkey-jackson Jackson support fixture-monkey-jakarta-validation Jakarta validation support fixture-monkey-javax-validation Javax validation support fixture-monkey-mockito Mockito support fixture-monkey-autoparams Autoparams support `}),e.add({id:5,href:"/v1-1-0/docs/get-started/creating-test-objects/",title:"Creating test objects",description:` Fixture Monkey works in both Java and Kotlin. We have a separate ‘Getting Started’ page for each environment you can use: Java, Java without Lombok, and Kotlin. This page explains the Java environment. Please refer to the appropriate page for your environment. Consider a scenario where you need a test fixture for a Product class, as shown below: 💡 lombok.anyConstructor.addConstructorProperties=true should be added in lombok.config @Value public class Product { long id; String productName; long price; List<String> options; Instant createdAt; ProductType productType; Map<Integer, String> merchantInfo; } (Note that the Lombok annotation @Value is used to make Immutable classes. If you’re working in an environment without Lombok, go to creating test objects without lombok) @@ -55,11 +55,11 @@ As evident from the then section, an instance of the Product class is created. `}),e.add({id:7,href:"/v1-1-0/docs/get-started/adding-bean-validation/",title:"Adding Bean Validation",description:`Sometimes, you might want to create a valid test object that adheres to the constraints specified by the Bean Validation annotations on your class. Fixture Monkey supports constraint annotations from the jakarta.validation.constraints and javax.validation.constraints packages. To enable this feature, you need to add the fixture-monkey-jakarta-validation dependency (or fixture-monkey-javax-validation if you are using javax.validation.constraints) to your project as follows: -Gradle # testImplementation("com.navercorp.fixturemonkey:fixture-monkey-jakarta-validation:1.1.0") Maven # <dependency> <groupId>com.navercorp.fixturemonkey</groupId> <artifactId>fixture-monkey-jakarta-validation</artifactId> <version>1.1.0</version> <scope>test</scope> </dependency> Fixture Monkey provides additional features as plugins. +Gradle # testImplementation("com.navercorp.fixturemonkey:fixture-monkey-jakarta-validation:1.1.1") Maven # <dependency> <groupId>com.navercorp.fixturemonkey</groupId> <artifactId>fixture-monkey-jakarta-validation</artifactId> <version>1.1.1</version> <scope>test</scope> </dependency> Fixture Monkey provides additional features as plugins. `,content:`Sometimes, you might want to create a valid test object that adheres to the constraints specified by the Bean Validation annotations on your class. Fixture Monkey supports constraint annotations from the jakarta.validation.constraints and javax.validation.constraints packages. To enable this feature, you need to add the fixture-monkey-jakarta-validation dependency (or fixture-monkey-javax-validation if you are using javax.validation.constraints) to your project as follows: -Gradle # testImplementation("com.navercorp.fixturemonkey:fixture-monkey-jakarta-validation:1.1.0") Maven # <dependency> <groupId>com.navercorp.fixturemonkey</groupId> <artifactId>fixture-monkey-jakarta-validation</artifactId> <version>1.1.0</version> <scope>test</scope> </dependency> Fixture Monkey provides additional features as plugins. +Gradle # testImplementation("com.navercorp.fixturemonkey:fixture-monkey-jakarta-validation:1.1.1") Maven # <dependency> <groupId>com.navercorp.fixturemonkey</groupId> <artifactId>fixture-monkey-jakarta-validation</artifactId> <version>1.1.1</version> <scope>test</scope> </dependency> Fixture Monkey provides additional features as plugins. To generate objects based on Bean Validation annotations, you need to add the JakartaValidationPlugin (or JavaxValidationPlugin if you are using javax.validation.constraints) option to FixtureMonkey as shown below. If you’ve added the fixture-monkey-starter dependency, it’s already in place. FixtureMonkey fixtureMonkey = FixtureMonkey.builder() .plugin(new JakartaValidationPlugin()) // or new JavaxValidationPlugin() .build(); Let’s assume that we have added several validation annotations to the previous Product class. @Value public class Product { @Min(1) long id; @NotBlank String productName; @Max(100000) long price; @Size(min = 3) List<@NotBlank String> options; @Past Instant createdAt; } With the FixtureMonkey instance we created earlier, we can now generate valid objects: @@ -379,10 +379,10 @@ Java Kotlin FixtureMonkey fixtureMonkey = FixtureMonkey.builder() .plugin(new Ja Add plugins # Fixture Monkey offers several additional features, including support for third-party libraries through plugins. You can use the plugin option to use these additional features. For example, you can add the Jackson plugin as shown below. This will allow you to use Jackson features such as JacksonObjectArbitraryIntrospector and Jackson annotation support. Java Kotlin FixtureMonkey fixtureMonkey = FixtureMonkey.builder() .plugin(new JacksonPlugin()) .build(); val fixtureMonkey = FixtureMonkey.builder() .plugin(JacksonPlugin()) .build() `}),e.add({id:29,href:"/v1-1-0/docs/plugins/kotlin-plugin/",title:"Kotlin Plugin",description:"",content:""}),e.add({id:30,href:"/v1-1-0/docs/plugins/",title:"Plugins",description:"",content:""}),e.add({id:31,href:"/v1-1-0/docs/plugins/kotlin-plugin/features/",title:"Features",description:`To help you take full advantage of the concise, safe, and pragmatic nature of Kotlin, Fixture Monkey provides a Kotlin plugin. -Using PrimaryConstructorArbitraryIntrospector as the default introspector to generate Kotlin classes with its primary constructor. Fixture Monkey Extension Functions Kotlin DSL Exp, Kotlin instantiateBy DSL Dependencies # fixture-monkey-kotlin # Gradle # testImplementation("com.navercorp.fixturemonkey:fixture-monkey-kotlin:1.1.0") Maven # <dependency> <groupId>com.navercorp.fixturemonkey</groupId> <artifactId>fixture-monkey-kotlin</artifactId> <version>1.1.0</version> <scope>test</scope> </dependency> fixture-monkey-starter-kotlin # To help you get started using Fixture Monkey in a Kotlin environment, there is also a starter dependency fixture-monkey-starter-kotlin that comes with pre-configured dependencies such as fixture-monkey-starter or fixture-monkey-jakarta-validation. +Using PrimaryConstructorArbitraryIntrospector as the default introspector to generate Kotlin classes with its primary constructor. Fixture Monkey Extension Functions Kotlin DSL Exp, Kotlin instantiateBy DSL Dependencies # fixture-monkey-kotlin # Gradle # testImplementation("com.navercorp.fixturemonkey:fixture-monkey-kotlin:1.1.1") Maven # <dependency> <groupId>com.navercorp.fixturemonkey</groupId> <artifactId>fixture-monkey-kotlin</artifactId> <version>1.1.1</version> <scope>test</scope> </dependency> fixture-monkey-starter-kotlin # To help you get started using Fixture Monkey in a Kotlin environment, there is also a starter dependency fixture-monkey-starter-kotlin that comes with pre-configured dependencies such as fixture-monkey-starter or fixture-monkey-jakarta-validation. `,content:`To help you take full advantage of the concise, safe, and pragmatic nature of Kotlin, Fixture Monkey provides a Kotlin plugin. -Using PrimaryConstructorArbitraryIntrospector as the default introspector to generate Kotlin classes with its primary constructor. Fixture Monkey Extension Functions Kotlin DSL Exp, Kotlin instantiateBy DSL Dependencies # fixture-monkey-kotlin # Gradle # testImplementation("com.navercorp.fixturemonkey:fixture-monkey-kotlin:1.1.0") Maven # <dependency> <groupId>com.navercorp.fixturemonkey</groupId> <artifactId>fixture-monkey-kotlin</artifactId> <version>1.1.0</version> <scope>test</scope> </dependency> fixture-monkey-starter-kotlin # To help you get started using Fixture Monkey in a Kotlin environment, there is also a starter dependency fixture-monkey-starter-kotlin that comes with pre-configured dependencies such as fixture-monkey-starter or fixture-monkey-jakarta-validation. -Gradle # testImplementation("com.navercorp.fixturemonkey:fixture-monkey-starter-kotlin:1.1.0") Maven # <dependency> <groupId>com.navercorp.fixturemonkey</groupId> <artifactId>fixture-monkey-starter-kotlin</artifactId> <version>1.1.0</version> <scope>test</scope> </dependency> Plugin # val fixtureMonkey = FixtureMonkey.builder() .plugin(KotlinPlugin()) .build() `}),e.add({id:32,href:"/v1-1-0/docs/plugins/kotlin-plugin/introspectors-for-kotlin/",title:"Introspectors for Kotlin",description:`Fixture Monkey provides some additional introspectors that support the generation of Kotlin classes. +Using PrimaryConstructorArbitraryIntrospector as the default introspector to generate Kotlin classes with its primary constructor. Fixture Monkey Extension Functions Kotlin DSL Exp, Kotlin instantiateBy DSL Dependencies # fixture-monkey-kotlin # Gradle # testImplementation("com.navercorp.fixturemonkey:fixture-monkey-kotlin:1.1.1") Maven # <dependency> <groupId>com.navercorp.fixturemonkey</groupId> <artifactId>fixture-monkey-kotlin</artifactId> <version>1.1.1</version> <scope>test</scope> </dependency> fixture-monkey-starter-kotlin # To help you get started using Fixture Monkey in a Kotlin environment, there is also a starter dependency fixture-monkey-starter-kotlin that comes with pre-configured dependencies such as fixture-monkey-starter or fixture-monkey-jakarta-validation. +Gradle # testImplementation("com.navercorp.fixturemonkey:fixture-monkey-starter-kotlin:1.1.1") Maven # <dependency> <groupId>com.navercorp.fixturemonkey</groupId> <artifactId>fixture-monkey-starter-kotlin</artifactId> <version>1.1.1</version> <scope>test</scope> </dependency> Plugin # val fixtureMonkey = FixtureMonkey.builder() .plugin(KotlinPlugin()) .build() `}),e.add({id:32,href:"/v1-1-0/docs/plugins/kotlin-plugin/introspectors-for-kotlin/",title:"Introspectors for Kotlin",description:`Fixture Monkey provides some additional introspectors that support the generation of Kotlin classes. PrimaryConstructorArbitraryIntrospector # The PrimaryConstructorArbitraryIntrospector becomes the default introspector when the Kotlin plugin is added. It creates a Kotlin class with its primary constructor. In the case of using PrimaryConstructorArbitraryIntrospector, it only contains the properties of the Kotlin constructor parameter. If you use your own ArbitraryIntrospector instead of PrimaryConstructorArbitraryIntrospector, it will contain the properties of the Kotlin constructor parameter, Field, Getter. So it contains the properties of the parent Field and Getter. You can customize the all properties by ArbitraryBuilder APIs. @@ -413,14 +413,14 @@ If it is a Kotlin class, the expression (e.g. KotlinClass::field) is KProperty, Referencing a nested property # To access a nested field, the infix functions into and intoGetter are used. into takes a parameter of type KProperty, while intoGetter takes a parameter of type KFunction. @Test fun test() { // given val fixtureMonkey = FixtureMonkey.builder() .plugin(KotlinPlugin()) .plugin(JacksonPlugin()) .build() // when val javaClass = fixtureMonkey.giveMeBuilder<JavaClass>() .setExp(JavaClass::getNestedObject intoGetter JavaClass.Nested::getNestedField, "nestedField") .sample() val kotlinClass = fixtureMonkey.giveMeBuilder<KotlinClass>() .setExp(KotlinClass::nestedObject into KotlinClass.Nested::nestedField, "nestedField") .sample() then(javaClass.nestedObject.nestedField).isEqualTo("nestedField") then(kotlinClass.nestedObject.nestedField).isEqualTo("nestedField") } An expression that contains an into or intoGetter operator becomes an ExpressionGenerator type in fixture monkey. Both setExp() and setExpGetter()) are defined to take ExpressionGenerator types as arguments, so you can use both. Selecting Properties Using Kotlin DSL Expressions # Selecting the root object: # Currently Not Supported Selecting a specific field: # JavaClass::getField // java class KotlinClass::field // kotlin class Selecting a nested field: # JavaClass::getNestedObject intoGetter JavaClass.Nested::getNestedField // java class KotlinClass::nestedObject into KotlinClass.Nested::nestedField // kotlin class Selecting the n-th element of a collection: # JavaClass::getNestedObjectList["0"] // java class KotlinClass::nestedObjectList["0"] // kotlin class Selecting all elements of a collection: # JavaClass::getNestedObjectList["*"] // java class KotlinClass::nestedObjectList["*"] // kotlin class Combining expressions to select a nested field: # JavaClass::getNestedObject intoGetter JavaClass.Nested::getNestedField // java class KotlinClass::nestedObject into KotlinClass.Nested::nestedField // kotlin class `}),e.add({id:34,href:"/v1-1-0/docs/plugins/jackson-plugin/",title:"Jackson Plugin",description:"",content:""}),e.add({id:35,href:"/v1-1-0/docs/plugins/jackson-plugin/features/",title:"Features",description:`Fixture monkey supports Jackson with the Fixture Monkey Jackson plugin. -Supports the use of JacksonObjectArbitraryIntrospector as the default introspector to create objects using the Jackson object mapper. Supports Jackson Annotations such as, @JsonIgnore, @JsonProperty Dependencies # Gradle # testImplementation("com.navercorp.fixturemonkey:fixture-monkey-jackson:1.1.0") Maven # <dependency> <groupId>com.navercorp.fixturemonkey</groupId> <artifactId>fixture-monkey-jackson</artifactId> <version>1.1.0</version> <scope>test</scope> </dependency> Plugin # Java Kotlin FixtureMonkey fixtureMonkey = FixtureMonkey.builder() .plugin(new JacksonPlugin()) .build(); val fixtureMonkey = FixtureMonkey.builder() .plugin(JacksonPlugin()) .build() Pass the object mapper to the JacksonPlugin constructor if you are using Jackson with a custom object mapper. +Supports the use of JacksonObjectArbitraryIntrospector as the default introspector to create objects using the Jackson object mapper. Supports Jackson Annotations such as, @JsonIgnore, @JsonProperty Dependencies # Gradle # testImplementation("com.navercorp.fixturemonkey:fixture-monkey-jackson:1.1.1") Maven # <dependency> <groupId>com.navercorp.fixturemonkey</groupId> <artifactId>fixture-monkey-jackson</artifactId> <version>1.1.1</version> <scope>test</scope> </dependency> Plugin # Java Kotlin FixtureMonkey fixtureMonkey = FixtureMonkey.builder() .plugin(new JacksonPlugin()) .build(); val fixtureMonkey = FixtureMonkey.builder() .plugin(JacksonPlugin()) .build() Pass the object mapper to the JacksonPlugin constructor if you are using Jackson with a custom object mapper. `,content:`Fixture monkey supports Jackson with the Fixture Monkey Jackson plugin. -Supports the use of JacksonObjectArbitraryIntrospector as the default introspector to create objects using the Jackson object mapper. Supports Jackson Annotations such as, @JsonIgnore, @JsonProperty Dependencies # Gradle # testImplementation("com.navercorp.fixturemonkey:fixture-monkey-jackson:1.1.0") Maven # <dependency> <groupId>com.navercorp.fixturemonkey</groupId> <artifactId>fixture-monkey-jackson</artifactId> <version>1.1.0</version> <scope>test</scope> </dependency> Plugin # Java Kotlin FixtureMonkey fixtureMonkey = FixtureMonkey.builder() .plugin(new JacksonPlugin()) .build(); val fixtureMonkey = FixtureMonkey.builder() .plugin(JacksonPlugin()) .build() Pass the object mapper to the JacksonPlugin constructor if you are using Jackson with a custom object mapper. +Supports the use of JacksonObjectArbitraryIntrospector as the default introspector to create objects using the Jackson object mapper. Supports Jackson Annotations such as, @JsonIgnore, @JsonProperty Dependencies # Gradle # testImplementation("com.navercorp.fixturemonkey:fixture-monkey-jackson:1.1.1") Maven # <dependency> <groupId>com.navercorp.fixturemonkey</groupId> <artifactId>fixture-monkey-jackson</artifactId> <version>1.1.1</version> <scope>test</scope> </dependency> Plugin # Java Kotlin FixtureMonkey fixtureMonkey = FixtureMonkey.builder() .plugin(new JacksonPlugin()) .build(); val fixtureMonkey = FixtureMonkey.builder() .plugin(JacksonPlugin()) .build() Pass the object mapper to the JacksonPlugin constructor if you are using Jackson with a custom object mapper. Java Kotlin ObjectMapper objectMapper = JsonMapper.builder() .disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES) .build() FixtureMonkey fixtureMonkey = FixtureMonkey.builder() .plugin(new JacksonPlugin(objectMapper)) .build(); val objectMapper = JsonMapper.builder() .disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES) .build() val fixtureMonkey = FixtureMonkey.builder() .plugin(JacksonPlugin(objectMapper)) .build() `}),e.add({id:36,href:"/v1-1-0/docs/plugins/jackson-plugin/jackson-object-arbitrary-introspector/",title:"JacksonObjectArbitraryIntrospector",description:`JacksonObjectArbitraryIntrospector # The JacksonObjectArbitraryIntrospector becomes the default introspector when the Jackson plugin is added. It puts the created properties of the given class into a map and deserializes them using Jackson’s object mapper. Example Java Class : -@Value public class Product { long id; String productName; long price; List<String> options; Instant createdAt; } Using JacksonObjectArbitraryIntrospector : Java Kotlin @Test void test() { FixtureMonkey fixtureMonkey = FixtureMonkey.builder() .plugin(new JacksonPlugin()) .build(); Product product = fixtureMonkey.giveMeOne(Product.class); } testImplementation("com.navercorp.fixturemonkey:fixture-monkey-starter-kotlin:1.1.0") testImplementation("com.fasterxml.jackson.module:jackson-module-kotlin") @Test fun test() { FixtureMonkey fixtureMonkey = FixtureMonkey.builder() .plugin(KotlinPlugin()) .plugin(JacksonPlugin()) .build(); val product: Product = fixtureMonkey.giveMeOne() } `,content:`JacksonObjectArbitraryIntrospector # The JacksonObjectArbitraryIntrospector becomes the default introspector when the Jackson plugin is added. It puts the created properties of the given class into a map and deserializes them using Jackson’s object mapper. +@Value public class Product { long id; String productName; long price; List<String> options; Instant createdAt; } Using JacksonObjectArbitraryIntrospector : Java Kotlin @Test void test() { FixtureMonkey fixtureMonkey = FixtureMonkey.builder() .plugin(new JacksonPlugin()) .build(); Product product = fixtureMonkey.giveMeOne(Product.class); } testImplementation("com.navercorp.fixturemonkey:fixture-monkey-starter-kotlin:1.1.1") testImplementation("com.fasterxml.jackson.module:jackson-module-kotlin") @Test fun test() { FixtureMonkey fixtureMonkey = FixtureMonkey.builder() .plugin(KotlinPlugin()) .plugin(JacksonPlugin()) .build(); val product: Product = fixtureMonkey.giveMeOne() } `,content:`JacksonObjectArbitraryIntrospector # The JacksonObjectArbitraryIntrospector becomes the default introspector when the Jackson plugin is added. It puts the created properties of the given class into a map and deserializes them using Jackson’s object mapper. Example Java Class : -@Value public class Product { long id; String productName; long price; List<String> options; Instant createdAt; } Using JacksonObjectArbitraryIntrospector : Java Kotlin @Test void test() { FixtureMonkey fixtureMonkey = FixtureMonkey.builder() .plugin(new JacksonPlugin()) .build(); Product product = fixtureMonkey.giveMeOne(Product.class); } testImplementation("com.navercorp.fixturemonkey:fixture-monkey-starter-kotlin:1.1.0") testImplementation("com.fasterxml.jackson.module:jackson-module-kotlin") @Test fun test() { FixtureMonkey fixtureMonkey = FixtureMonkey.builder() .plugin(KotlinPlugin()) .plugin(JacksonPlugin()) .build(); val product: Product = fixtureMonkey.giveMeOne() } 💡 To generate Kotlin classes with JacksonObjectArbitraryIntrospector, both Kotlin plugin and Jackson plugin need to be added. In addition, fasterxml jackson-module-kotlin should be added to the dependency for serialization/deserialization of Kotlin classes. It has the advantage of being a general purpose introspector because it relies on the widely used Jackson for object creation. If your production code has both Kotlin and Java classes, it is recommended to use JacksonObjectArbitraryIntrospector. +@Value public class Product { long id; String productName; long price; List<String> options; Instant createdAt; } Using JacksonObjectArbitraryIntrospector : Java Kotlin @Test void test() { FixtureMonkey fixtureMonkey = FixtureMonkey.builder() .plugin(new JacksonPlugin()) .build(); Product product = fixtureMonkey.giveMeOne(Product.class); } testImplementation("com.navercorp.fixturemonkey:fixture-monkey-starter-kotlin:1.1.1") testImplementation("com.fasterxml.jackson.module:jackson-module-kotlin") @Test fun test() { FixtureMonkey fixtureMonkey = FixtureMonkey.builder() .plugin(KotlinPlugin()) .plugin(JacksonPlugin()) .build(); val product: Product = fixtureMonkey.giveMeOne() } 💡 To generate Kotlin classes with JacksonObjectArbitraryIntrospector, both Kotlin plugin and Jackson plugin need to be added. In addition, fasterxml jackson-module-kotlin should be added to the dependency for serialization/deserialization of Kotlin classes. It has the advantage of being a general purpose introspector because it relies on the widely used Jackson for object creation. If your production code has both Kotlin and Java classes, it is recommended to use JacksonObjectArbitraryIntrospector. However, it does have the disadvantage of potentially not performing as efficiently as other introspectors, as deserialization with Jackson can be more time-consuming. `}),e.add({id:37,href:"/v1-1-0/docs/plugins/jackson-plugin/jackson-annotations/",title:"Jackson Annotations",description:`With the Jackson plugin, some Jackson annotations are also supported. @JsonProperty, @JsonIgnore # We can use the property name specified by @JsonProperty when using the String Expression to customize this property. @@ -436,9 +436,9 @@ Example Java Class : @Value // lombok getter, setter public class Product { long id; @JsonProperty("name") String productName; long price; @JsonIgnore List<String> options; Instant createdAt; } Java Kotlin @Test void test() { // given FixtureMonkey fixtureMonkey = FixtureMonkey.builder() .plugin(new JacksonPlugin()) .build(); // when Product actual = fixtureMonkey.giveMeBuilder(Product.class) .set("name", "book") .sample(); // then then(actual.getProductName()).isEqualTo("book"); // @JsonProperty then(actual.getOptions()).isNull(); // @JsonIgnore } @Test fun test() { // given val fixtureMonkey = FixtureMonkey.builder() .plugin(JacksonPlugin()) .build() // when val actual = fixtureMonkey.giveMeBuilder<Product>() .set("name", "book") .sample() // then then(actual.productName).isEqualTo("book") // @JsonProperty then(actual.options).isNull() // @JsonIgnore } @JsonTypeInfo, @JsonSubTypes # Fixture Monkey also supports Jackson’s polymorphic type handling annotations @JsonTypeInfo and @JsonSubTypes. We can generate an inheritance-implementation relationship object with the help of FixtureMonkey. `}),e.add({id:38,href:"/v1-1-0/docs/plugins/jakarta-validation-plugin/",title:"Jakarta Validation Plugin",description:"",content:""}),e.add({id:39,href:"/v1-1-0/docs/plugins/jakarta-validation-plugin/features/",title:"Features",description:`Fixture monkey supports generating valid data based on Jakarta Bean Validation 3.0 annotations with the Fixture Monkey Jakarta Validation Plugin. -💡 Javax Bean Validation is also supported with the Fixture Monkey Javax Validation Plugin Dependencies # Gradle # testImplementation("com.navercorp.fixturemonkey:jakarta-validation:1.1.0") Maven # <dependency> <groupId>com.navercorp.fixturemonkey</groupId> <artifactId>fixture-monkey-jakarta-validation</artifactId> <version>1.1.0</version> <scope>test</scope> </dependency> The jakarta validation API and the Hibernate validator are already provided as part of the dependency. +💡 Javax Bean Validation is also supported with the Fixture Monkey Javax Validation Plugin Dependencies # Gradle # testImplementation("com.navercorp.fixturemonkey:jakarta-validation:1.1.1") Maven # <dependency> <groupId>com.navercorp.fixturemonkey</groupId> <artifactId>fixture-monkey-jakarta-validation</artifactId> <version>1.1.1</version> <scope>test</scope> </dependency> The jakarta validation API and the Hibernate validator are already provided as part of the dependency. Plugin # Java Kotlin FixtureMonkey fixtureMonkey = FixtureMonkey.builder() .plugin(new JakartaValidationPlugin()) .build(); val fixtureMonkey = FixtureMonkey.builder() .plugin(JakartaValidationPlugin()) .build() `,content:`Fixture monkey supports generating valid data based on Jakarta Bean Validation 3.0 annotations with the Fixture Monkey Jakarta Validation Plugin. -💡 Javax Bean Validation is also supported with the Fixture Monkey Javax Validation Plugin Dependencies # Gradle # testImplementation("com.navercorp.fixturemonkey:jakarta-validation:1.1.0") Maven # <dependency> <groupId>com.navercorp.fixturemonkey</groupId> <artifactId>fixture-monkey-jakarta-validation</artifactId> <version>1.1.0</version> <scope>test</scope> </dependency> The jakarta validation API and the Hibernate validator are already provided as part of the dependency. +💡 Javax Bean Validation is also supported with the Fixture Monkey Javax Validation Plugin Dependencies # Gradle # testImplementation("com.navercorp.fixturemonkey:jakarta-validation:1.1.1") Maven # <dependency> <groupId>com.navercorp.fixturemonkey</groupId> <artifactId>fixture-monkey-jakarta-validation</artifactId> <version>1.1.1</version> <scope>test</scope> </dependency> The jakarta validation API and the Hibernate validator are already provided as part of the dependency. Plugin # Java Kotlin FixtureMonkey fixtureMonkey = FixtureMonkey.builder() .plugin(new JakartaValidationPlugin()) .build(); val fixtureMonkey = FixtureMonkey.builder() .plugin(JakartaValidationPlugin()) .build() `}),e.add({id:40,href:"/v1-1-0/docs/plugins/jakarta-validation-plugin/bean-validation/",title:"Bean Validation",description:`Generating valid data # Using the Jakarta Validation plugin, we can generate valid data based on Jakarta Bean validation annotations on properties. For example, there can be a Product class annotated as follows: @Value public class Product { @Min(1) long id; @NotBlank String productName; @Max(100000) long price; @Size(min = 3) List<@NotBlank String> options; @Past Instant createdAt; } An instance of the Product class that is compliant with the annotations can be created in the following manner: @@ -449,8 +449,8 @@ For example, there can be a Product class annotated as follows: Numeric Type # Supported Types: BigDecimal, BigInteger, byte, double, float, int, long, short @Digits (fraction is currently not supported) @Max @Min @Negative @NegativeOrZero @DecimalMax @DecimalMin @Positive @PositiveOrZero Boolean Type # @AssertFalse @AssertTrue String Type # @Null @NotNull @NotBlank @NotEmpty @Size @Digits @Pattern @Email Time Type # Supported Types: Calendar, Date, Instant, LocalDate, LocalDateTime, LocalTime, ZonedDateTime, Year, YearMonth, MonthDay, OffsetDateTime, OffsetTime @Past @PastOrPresent @Future @FutureOrPresent Container Type # @Size @NotEmpty `}),e.add({id:41,href:"/v1-1-0/docs/intellij-plugin/",title:"Intellij Plugin",description:"",content:""}),e.add({id:42,href:"/v1-1-0/docs/plugins/kotest-plugin/",title:"Kotest Plugin",description:"",content:""}),e.add({id:43,href:"/v1-1-0/docs/plugins/kotest-plugin/features/",title:"Features",description:`The Kotest plugin provided by Fixture Monkey allows you to enhance your testing experience within the Kotest framework. -Replaces the default generator for generating random values for primitive types from Jqwik to Kotest’s property generator (Arb). Use of bean validation annotations also works. Support for Kotest’s property-based testing functions, including forAll and checkAll. 💡 Adding the Kotest Plugin doesn't mean you have to use Kotest as your testing framework. You can still use Junit. Dependencies # fixture-monkey-kotlin # Gradle # testImplementation("com.navercorp.fixturemonkey:fixture-monkey-kotest:1.1.0") Maven # <dependency> <groupId>com.navercorp.fixturemonkey</groupId> <artifactId>fixture-monkey-kotest</artifactId> <version>1.1.0</version> <scope>test</scope> </dependency> Plugin # val fixtureMonkey = FixtureMonkey.builder() .plugin(KotestPlugin()) .plugin(KotlinPlugin()) .build() `,content:`The Kotest plugin provided by Fixture Monkey allows you to enhance your testing experience within the Kotest framework. -Replaces the default generator for generating random values for primitive types from Jqwik to Kotest’s property generator (Arb). Use of bean validation annotations also works. Support for Kotest’s property-based testing functions, including forAll and checkAll. 💡 Adding the Kotest Plugin doesn't mean you have to use Kotest as your testing framework. You can still use Junit. Dependencies # fixture-monkey-kotlin # Gradle # testImplementation("com.navercorp.fixturemonkey:fixture-monkey-kotest:1.1.0") Maven # <dependency> <groupId>com.navercorp.fixturemonkey</groupId> <artifactId>fixture-monkey-kotest</artifactId> <version>1.1.0</version> <scope>test</scope> </dependency> Plugin # val fixtureMonkey = FixtureMonkey.builder() .plugin(KotestPlugin()) .plugin(KotlinPlugin()) .build() `}),e.add({id:44,href:"/v1-1-0/docs/intellij-plugin/fixture-monkey-helper/",title:"Fixture Monkey Helper",description:`Fixture Monkey Helper is an IntelliJ plugin that helps to use Fixture Monkey on the IntelliJ IDE. +Replaces the default generator for generating random values for primitive types from Jqwik to Kotest’s property generator (Arb). Use of bean validation annotations also works. Support for Kotest’s property-based testing functions, including forAll and checkAll. 💡 Adding the Kotest Plugin doesn't mean you have to use Kotest as your testing framework. You can still use Junit. Dependencies # fixture-monkey-kotlin # Gradle # testImplementation("com.navercorp.fixturemonkey:fixture-monkey-kotest:1.1.1") Maven # <dependency> <groupId>com.navercorp.fixturemonkey</groupId> <artifactId>fixture-monkey-kotest</artifactId> <version>1.1.1</version> <scope>test</scope> </dependency> Plugin # val fixtureMonkey = FixtureMonkey.builder() .plugin(KotestPlugin()) .plugin(KotlinPlugin()) .build() `,content:`The Kotest plugin provided by Fixture Monkey allows you to enhance your testing experience within the Kotest framework. +Replaces the default generator for generating random values for primitive types from Jqwik to Kotest’s property generator (Arb). Use of bean validation annotations also works. Support for Kotest’s property-based testing functions, including forAll and checkAll. 💡 Adding the Kotest Plugin doesn't mean you have to use Kotest as your testing framework. You can still use Junit. Dependencies # fixture-monkey-kotlin # Gradle # testImplementation("com.navercorp.fixturemonkey:fixture-monkey-kotest:1.1.1") Maven # <dependency> <groupId>com.navercorp.fixturemonkey</groupId> <artifactId>fixture-monkey-kotest</artifactId> <version>1.1.1</version> <scope>test</scope> </dependency> Plugin # val fixtureMonkey = FixtureMonkey.builder() .plugin(KotestPlugin()) .plugin(KotlinPlugin()) .build() `}),e.add({id:44,href:"/v1-1-0/docs/intellij-plugin/fixture-monkey-helper/",title:"Fixture Monkey Helper",description:`Fixture Monkey Helper is an IntelliJ plugin that helps to use Fixture Monkey on the IntelliJ IDE. It provides some features that make using String Expressions and Kotlin DSL Expressions easier, and also add some IntelliJ inspections to detect and fix abnormal code. 🚨 This plugin currently operates only within Java source code and Kotlin test code. Plans for expansion are in progress. Features # Fixture Monkey Expression support `,content:`Fixture Monkey Helper is an IntelliJ plugin that helps to use Fixture Monkey on the IntelliJ IDE. diff --git a/v0-6-0-kor/404.html b/v0-6-0-kor/404.html index 17f6321c0..82544385c 100644 --- a/v0-6-0-kor/404.html +++ b/v0-6-0-kor/404.html @@ -6,4 +6,4 @@ v0.6.x
The page you are looking for doesn't exist or has been moved.