diff --git a/docs/data.json b/docs/data.json new file mode 100644 index 0000000..b74b0cb --- /dev/null +++ b/docs/data.json @@ -0,0 +1,3 @@ +{ + "version": "11.0.3" +} \ No newline at end of file diff --git a/docs/extensions/autoparams-kotlin.mdx b/docs/extensions/autoparams-kotlin.mdx index b86e4ae..73cba57 100644 --- a/docs/extensions/autoparams-kotlin.mdx +++ b/docs/extensions/autoparams-kotlin.mdx @@ -2,7 +2,7 @@ sidebar_position: 4 --- -import { JavaKotlinCodeBlock } from '@site/src/components/JavaKotlinCodeBlock'; +import { JavaKotlinCodeBlock } from '@site/src/components/Custom'; # `autoparams-kotlin` @@ -18,7 +18,7 @@ For Maven, you can add the following dependency to your `pom.xml`: io.github.autoparams autoparams-kotlin - 11.0.1 + 11.0.3 ``` @@ -27,7 +27,7 @@ For Maven, you can add the following dependency to your `pom.xml`: For Gradle Groovy DSL, use: ```gradle -testImplementation 'io.github.autoparams:autoparams-kotlin:11.0.1' +testImplementation 'io.github.autoparams:autoparams-kotlin:11.0.3' ``` ### Gradle (Kotlin) @@ -35,7 +35,7 @@ testImplementation 'io.github.autoparams:autoparams-kotlin:11.0.1' For Gradle Kotlin DSL, use: ```gradle -testImplementation("io.github.autoparams:autoparams-kotlin:11.0.1") +testImplementation("io.github.autoparams:autoparams-kotlin:11.0.3") ``` ## `@AutoKotlinParams` Annotation diff --git a/docs/extensions/autoparams-lombok.mdx b/docs/extensions/autoparams-lombok.mdx index ed86b01..7515abe 100644 --- a/docs/extensions/autoparams-lombok.mdx +++ b/docs/extensions/autoparams-lombok.mdx @@ -2,7 +2,7 @@ sidebar_position: 3 --- -import { JavaKotlinCodeBlock } from '@site/src/components/JavaKotlinCodeBlock'; +import { JavaKotlinCodeBlock } from '@site/src/components/Custom'; # `autoparams-lombok` @@ -18,7 +18,7 @@ For Maven, you can add the following dependency to your `pom.xml`: io.github.autoparams autoparams-lombok - 11.0.1 + 11.0.3 ``` @@ -27,7 +27,7 @@ For Maven, you can add the following dependency to your `pom.xml`: For Gradle Groovy DSL, use: ```gradle -testImplementation 'io.github.autoparams:autoparams-lombok:11.0.1' +testImplementation 'io.github.autoparams:autoparams-lombok:11.0.3' ``` ### Gradle (Kotlin) @@ -35,7 +35,7 @@ testImplementation 'io.github.autoparams:autoparams-lombok:11.0.1' For Gradle Kotlin DSL, use: ```gradle -testImplementation("io.github.autoparams:autoparams-lombok:11.0.1") +testImplementation("io.github.autoparams:autoparams-lombok:11.0.3") ``` ## `BuilderCustomizer` Class diff --git a/docs/extensions/autoparams-mockito.mdx b/docs/extensions/autoparams-mockito.mdx index 9f6cb09..2571419 100644 --- a/docs/extensions/autoparams-mockito.mdx +++ b/docs/extensions/autoparams-mockito.mdx @@ -2,7 +2,7 @@ sidebar_position: 2 --- -import { JavaKotlinCodeBlock } from '@site/src/components/JavaKotlinCodeBlock'; +import { JavaKotlinCodeBlock } from '@site/src/components/Custom'; # `autoparams-mockito` @@ -18,7 +18,7 @@ For Maven, you can add the following dependency to your `pom.xml`: io.github.autoparams autoparams-mockito - 11.0.1 + 11.0.3 ``` @@ -27,7 +27,7 @@ For Maven, you can add the following dependency to your `pom.xml`: For Gradle Groovy DSL, use: ```gradle -testImplementation 'io.github.autoparams:autoparams-mockito:11.0.1' +testImplementation 'io.github.autoparams:autoparams-mockito:11.0.3' ``` ### Gradle (Kotlin) @@ -35,7 +35,7 @@ testImplementation 'io.github.autoparams:autoparams-mockito:11.0.1' For Gradle Kotlin DSL, use: ```gradle -testImplementation("io.github.autoparams:autoparams-mockito:11.0.1") +testImplementation("io.github.autoparams:autoparams-mockito:11.0.3") ``` ## Generating Test Doubles with Mockito diff --git a/docs/extensions/autoparams-spring.mdx b/docs/extensions/autoparams-spring.mdx index b9b1e03..15b3467 100644 --- a/docs/extensions/autoparams-spring.mdx +++ b/docs/extensions/autoparams-spring.mdx @@ -3,7 +3,8 @@ sidebar_position: 1 sidebar_label: autoparams-spring --- -import { JavaKotlinCodeBlock } from '@site/src/components/JavaKotlinCodeBlock'; +import { JavaKotlinCodeBlock, JavadocLink } from '@site/src/components/Custom'; +import { version } from '../data.json'; # `autoparams-spring` @@ -26,7 +27,7 @@ For Maven, you can add the following dependency to your pom.xml: io.github.autoparams autoparams-spring - 11.0.1 + 11.0.3 ``` @@ -35,7 +36,7 @@ For Maven, you can add the following dependency to your pom.xml: For Gradle Groovy, use: ```gradle -testImplementation 'io.github.autoparams:autoparams-spring:11.0.1' +testImplementation 'io.github.autoparams:autoparams-spring:11.0.3' ``` ### Gradle (Kotlin) @@ -43,7 +44,7 @@ testImplementation 'io.github.autoparams:autoparams-spring:11.0.1' For Gradle Kotlin, use: ```gradle -testImplementation("io.github.autoparams:autoparams-spring:11.0.1") +testImplementation("io.github.autoparams:autoparams-spring:11.0.3") ``` ## `@UseBeans` Annotation @@ -89,7 +90,7 @@ class HelloSupplier : MessageSupplier { ``` -If you want to test how your `MessageSupplier` bean behaves, you can use the [`@UseBeans`](https://www.javadoc.io/static/io.github.autoparams/autoparams-spring/11.0.1/autoparams/spring/UseBeans.html) annotation like this: +If you want to test how your `MessageSupplier` bean behaves, you can use the `@UseBeans` annotation like this: ```java diff --git a/docs/features/collections-and-arrays.mdx b/docs/features/collections-and-arrays.mdx index 9226674..7fc888d 100644 --- a/docs/features/collections-and-arrays.mdx +++ b/docs/features/collections-and-arrays.mdx @@ -3,7 +3,7 @@ sidebar_position: 4.5 sidebar_label: Collections and Arrays --- -import { JavaKotlinCodeBlock } from '@site/src/components/JavaKotlinCodeBlock'; +import { JavaKotlinCodeBlock } from '@site/src/components/Custom'; # Collections and Arrays diff --git a/docs/features/constructor-selection-policy.mdx b/docs/features/constructor-selection-policy.mdx index 95c7ff7..535d073 100644 --- a/docs/features/constructor-selection-policy.mdx +++ b/docs/features/constructor-selection-policy.mdx @@ -3,7 +3,7 @@ sidebar_position: 7 sidebar_label: Constructor Selection Policy --- -import { JavaKotlinCodeBlock } from '@site/src/components/JavaKotlinCodeBlock'; +import { JavaKotlinCodeBlock } from '@site/src/components/Custom'; # Constructor Selection Policy diff --git a/docs/features/customization.mdx b/docs/features/customization.mdx index 3497a1e..81d547e 100644 --- a/docs/features/customization.mdx +++ b/docs/features/customization.mdx @@ -3,7 +3,8 @@ sidebar_position: 5 sidebar_label: Customization --- -import { JavaKotlinCodeBlock } from '@site/src/components/JavaKotlinCodeBlock'; +import { JavaKotlinCodeBlock, JavadocLink } from '@site/src/components/Custom'; +import { version } from '../data.json'; # Customization @@ -14,7 +15,7 @@ For example, suppose the `Product` entity must follow these business rules: - `priceAmount` must be greater than or equal to `10` - `priceAmount` must be less than or equal to `10000` -You can implement these rules using a custom generator by extending [`ObjectGeneratorBase`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/generator/ObjectGeneratorBase.html): +You can implement these rules using a custom generator by extending `ObjectGeneratorBase`: ```java @@ -49,9 +50,9 @@ class ProductGenerator : ObjectGeneratorBase() { ``` -This custom generator creates a `Product` instance that adheres to the business constraints. It uses [`ResolutionContext`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/ResolutionContext.html) to generate supporting values like `id` and `name`, and applies explicit logic to generate a valid `priceAmount`. +This custom generator creates a `Product` instance that adheres to the business constraints. It uses `ResolutionContext` to generate supporting values like `id` and `name`, and applies explicit logic to generate a valid `priceAmount`. -You can apply this custom generator using the [`@Customization`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/customization/Customization.html) annotation: +You can apply this custom generator using the `@Customization` annotation: ```java @@ -142,7 +143,7 @@ fun testMethod(product: Product, review: Review) { ``` -Alternatively, if you prefer to encapsulate multiple generators into a single reusable configuration, you can extend [`CompositeCustomizer`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/customization/CompositeCustomizer.html): +Alternatively, if you prefer to encapsulate multiple generators into a single reusable configuration, you can extend `CompositeCustomizer`: ```java @@ -312,7 +313,7 @@ class TestClass { ``` -In this example, we use the [`set`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/customization/dsl/ArgumentCustomizationDsl.html#set(autoparams.customization.dsl.FunctionDelegate)) static method from the [`ArgumentCustomizationDsl`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/customization/dsl/ArgumentCustomizationDsl.html) class to customize the behavior of the `ResolutionContext`. Specifically: +In this example, we use the `set` static method from the `ArgumentCustomizationDsl` class to customize the behavior of the `ResolutionContext`. Specifically: - The `product` property in any `Review` instance created by the context will be set to the `product` parameter of the test. - Likewise, the `rating` property will be set to the `rating` parameter. @@ -359,7 +360,7 @@ class TestClass { ``` -The [`Factory`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/generator/Factory.html) class provides a convenient way to create customized objects when working with a single type. It avoids managing an explicit resolution context and keeps the test focused on the instances under test. +The `Factory` class provides a convenient way to create customized objects when working with a single type. It avoids managing an explicit resolution context and keeps the test focused on the instances under test. :::note @@ -376,7 +377,7 @@ The `set` method relies on the availability of parameter names at runtime. Howev ## Settable Properties -If a class follows the JavaBeans convention—meaning it has a no-arguments constructor and public setter methods—AutoParams can automatically populate its properties using the [`InstancePropertyWriter`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/processor/InstancePropertyWriter.html) customizer. +If a class follows the JavaBeans convention—meaning it has a no-arguments constructor and public setter methods—AutoParams can automatically populate its properties using the `InstancePropertyWriter` customizer. Here's a simple example: diff --git a/docs/features/factory.mdx b/docs/features/factory.mdx index 4cb1ee5..e4a1ef4 100644 --- a/docs/features/factory.mdx +++ b/docs/features/factory.mdx @@ -3,11 +3,12 @@ sidebar_position: 4 sidebar_label: Factory class --- -import { JavaKotlinCodeBlock } from '@site/src/components/JavaKotlinCodeBlock'; +import { JavaKotlinCodeBlock, JavadocLink } from '@site/src/components/Custom'; +import { version } from '../data.json'; # `Factory` class -The [`Factory`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/generator/Factory.html) class is useful when you need to generate multiple instances of the same type. It allows you to create single instances or collections of generated objects on demand. +The `Factory` class is useful when you need to generate multiple instances of the same type. It allows you to create single instances or collections of generated objects on demand. Here's an example: @@ -31,4 +32,4 @@ fun testMethod() { ``` -In this example, a `Factory` is created to produce `Product` instances. The [`get()`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/generator/Factory.html#get()) method creates a single instance, while [`getRange(n)`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/generator/Factory.html#getRange(int,autoparams.customization.Customizer...)) returns a list of `n` instances. This approach is particularly helpful when you need bulk data generation in your tests. +In this example, a `Factory` is created to produce `Product` instances. The `get()` method creates a single instance, while `getRange(n)` returns a list of `n` instances. This approach is particularly helpful when you need bulk data generation in your tests. diff --git a/docs/features/freeze-by.mdx b/docs/features/freeze-by.mdx index dfb0a84..8d5a02f 100644 --- a/docs/features/freeze-by.mdx +++ b/docs/features/freeze-by.mdx @@ -3,17 +3,18 @@ sidebar_position: 1 sidebar_label: '@FreezeBy Annotation' --- -import { JavaKotlinCodeBlock } from '@site/src/components/JavaKotlinCodeBlock'; +import { JavaKotlinCodeBlock, JavadocLink } from '@site/src/components/Custom'; +import { version } from '../data.json'; # `@FreezeBy` Annotation -The [`@FreezeBy`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/customization/FreezeBy.html) annotation enables fine-grained control over value freezing in tests. It allows you to freeze a single value and reuse it across multiple generation targets that match specific conditions, such as type or name. This helps improve test readability and ensures consistency among generated values. +The `@FreezeBy` annotation enables fine-grained control over value freezing in tests. It allows you to freeze a single value and reuse it across multiple generation targets that match specific conditions, such as type or name. This helps improve test readability and ensures consistency among generated values. ## Matching Strategies AutoParams provides several matching strategies that determine which targets should receive the frozen value during object generation. The following examples illustrate some strategies: -- [`EXACT_TYPE`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/customization/Matching.html#EXACT_TYPE) +- `EXACT_TYPE` Reuses the frozen value for all targets with the exact same type. @@ -72,7 +73,7 @@ AutoParams provides several matching strategies that determine which targets sho In this example, all `String` targets—including the `String` field inside `StringContainer`—are generated with the same frozen value. -- [`IMPLEMENTED_INTERFACES`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/customization/Matching.html#IMPLEMENTED_INTERFACES) +- `IMPLEMENTED_INTERFACES` Reuses the frozen value for targets whose types are interfaces that the frozen value's type implements. @@ -116,7 +117,7 @@ AutoParams provides several matching strategies that determine which targets sho In this example, `String` implements `CharSequence`, so the same value is reused for both `s1` and `chars`. `StringContainer` is not affected because its type is not an interface. -- [`PARAMETER_NAME`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/customization/Matching.html#PARAMETER_NAME) +- `PARAMETER_NAME` Reuses the frozen value for other targets with matching names. @@ -210,7 +211,7 @@ In this example, the frozen value `s1` is reused for both `s2` (same type) and ` ## Shorthand for `EXACT_TYPE` -Using [`@Freeze`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/customization/Freeze.html) is equivalent to `@FreezeBy(EXACT_TYPE)`. It's a convenient shorthand for the most common matching strategy. +Using `@Freeze` is equivalent to `@FreezeBy(EXACT_TYPE)`. It's a convenient shorthand for the most common matching strategy. ```java diff --git a/docs/features/parameterized.mdx b/docs/features/parameterized.mdx index e4d506f..df0d20c 100644 --- a/docs/features/parameterized.mdx +++ b/docs/features/parameterized.mdx @@ -3,7 +3,8 @@ sidebar_position: 6 sidebar_label: Parameterized Tests --- -import { JavaKotlinCodeBlock } from '@site/src/components/JavaKotlinCodeBlock'; +import { JavaKotlinCodeBlock, JavadocLink } from '@site/src/components/Custom'; +import { version } from '../data.json'; # Parameterized Tests @@ -13,7 +14,7 @@ Here are some of the features you can use for parameterized tests. ## `@ValueAutoSource` Annotation -The [`@ValueAutoSource`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/ValueAutoSource.html)(or `@ValueAutoKotlinSource`) annotation is a simple yet powerful tool for writing parameterized tests with AutoParams. +The `@ValueAutoSource`(or `@ValueAutoKotlinSource`) annotation is a simple yet powerful tool for writing parameterized tests with AutoParams. ```java @@ -45,7 +46,7 @@ This feature depends on parameter name availability. See the note in the [One-ti ::: -In this example, the test method is executed twice—once with `"Camera"` and once with `"Candle"` as the value of the `name` parameter. The `factory` parameter is resolved automatically by AutoParams and can be customized using the DSL, as shown with [`freezeArgument`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/customization/dsl/ArgumentCustomizationDsl.html). +In this example, the test method is executed twice—once with `"Camera"` and once with `"Candle"` as the value of the `name` parameter. The `factory` parameter is resolved automatically by AutoParams and can be customized using the DSL, as shown with `freezeArgument`. This enables the creation of test objects (`Product` in this case) that are partially controlled (e.g., a fixed name) and partially randomized (e.g., all other properties), striking a balance between specificity and variety. @@ -64,7 +65,7 @@ The usage of `@ValueAutoSource` is similar to JUnit 5's `@ValueSource`, and it s ## `@CsvAutoSource` Annotation -The [`@CsvAutoSource`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/CsvAutoSource.html)(or `@CsvAutoKotlinSource`) annotation lets you define repeated test inputs in CSV format, similar to JUnit 5’s @CsvSource. Any parameters not explicitly provided in the CSV rows will be automatically generated by AutoParams. +The `@CsvAutoSource`(or `@CsvAutoKotlinSource`) annotation lets you define repeated test inputs in CSV format, similar to JUnit 5’s @CsvSource. Any parameters not explicitly provided in the CSV rows will be automatically generated by AutoParams. ```java @@ -100,7 +101,7 @@ This approach makes it easy to test combinations of fixed and dynamic values in ## `@MethodAutoSource` Annotation -The [`@MethodAutoSource`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/MethodAutoSource.html)(or `@MethodAutoKotlinSource`) annotation combines the features of JUnit 5’s `@MethodSource` and AutoParams’s `@AutoSource`. You can specify a method that provides test data, and AutoParams will fill in any remaining parameters automatically. +The `@MethodAutoSource`(or `@MethodAutoKotlinSource`) annotation combines the features of JUnit 5’s `@MethodSource` and AutoParams’s `@AutoSource`. You can specify a method that provides test data, and AutoParams will fill in any remaining parameters automatically. ```java @@ -145,7 +146,7 @@ This setup allows you to blend manually specified values with automatically gene ## `@Repeat` Annotation -The [`@Repeat`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/Repeat.html) annotation allows you to run a test multiple times, generating fresh random values for unspecified parameters on each run. +The `@Repeat` annotation allows you to run a test multiple times, generating fresh random values for unspecified parameters on each run. ```java diff --git a/docs/features/range-of-values.mdx b/docs/features/range-of-values.mdx index 182f5e2..8f57487 100644 --- a/docs/features/range-of-values.mdx +++ b/docs/features/range-of-values.mdx @@ -3,7 +3,7 @@ sidebar_position: 2 sidebar_label: Setting the Range of Values --- -import { JavaKotlinCodeBlock } from '@site/src/components/JavaKotlinCodeBlock'; +import { JavaKotlinCodeBlock } from '@site/src/components/Custom'; # Setting the Range of Values diff --git a/docs/features/resolution-context.mdx b/docs/features/resolution-context.mdx index 8c82830..3220e57 100644 --- a/docs/features/resolution-context.mdx +++ b/docs/features/resolution-context.mdx @@ -3,11 +3,12 @@ sidebar_position: 3 sidebar_label: ResolutionContext class --- -import { JavaKotlinCodeBlock } from '@site/src/components/JavaKotlinCodeBlock'; +import { JavaKotlinCodeBlock, JavadocLink } from '@site/src/components/Custom'; +import { version } from '../data.json'; # `ResolutionContext` class -The [`ResolutionContext`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/ResolutionContext.html) class provides the core mechanism for generating test data. While it is used internally by AutoParams, you can also instantiate and use it directly in your own test code when needed. +The `ResolutionContext` class provides the core mechanism for generating test data. While it is used internally by AutoParams, you can also instantiate and use it directly in your own test code when needed. Here's an example: diff --git a/docs/getting-started.mdx b/docs/getting-started.mdx index e2a3803..2541a71 100644 --- a/docs/getting-started.mdx +++ b/docs/getting-started.mdx @@ -20,7 +20,7 @@ For Maven, you can add the following dependency to your `pom.xml`: io.github.autoparams autoparams - 11.0.1 + 11.0.3 ``` @@ -29,7 +29,7 @@ For Maven, you can add the following dependency to your `pom.xml`: For Gradle Groovy DSL, use: ```gradle -testImplementation 'io.github.autoparams:autoparams:11.0.1' +testImplementation 'io.github.autoparams:autoparams:11.0.3' ``` ### Gradle (Kotlin) @@ -37,5 +37,5 @@ testImplementation 'io.github.autoparams:autoparams:11.0.1' For Gradle Kotlin DSL, use: ```gradle -testImplementation("io.github.autoparams:autoparams:11.0.1") +testImplementation("io.github.autoparams:autoparams:11.0.3") ``` diff --git a/docs/overview.mdx b/docs/overview.mdx index e823cba..1c51b7a 100644 --- a/docs/overview.mdx +++ b/docs/overview.mdx @@ -3,7 +3,7 @@ slug: / sidebar_position: 1 --- -import { JavaKotlinCodeBlock } from '@site/src/components/JavaKotlinCodeBlock'; +import { JavaKotlinCodeBlock } from '@site/src/components/Custom'; # Overview diff --git a/i18n/ko/docusaurus-plugin-content-docs/current/data.json b/i18n/ko/docusaurus-plugin-content-docs/current/data.json new file mode 100644 index 0000000..b74b0cb --- /dev/null +++ b/i18n/ko/docusaurus-plugin-content-docs/current/data.json @@ -0,0 +1,3 @@ +{ + "version": "11.0.3" +} \ No newline at end of file diff --git a/i18n/ko/docusaurus-plugin-content-docs/current/extensions/autoparams-kotlin.mdx b/i18n/ko/docusaurus-plugin-content-docs/current/extensions/autoparams-kotlin.mdx index 49eac83..de9fb44 100644 --- a/i18n/ko/docusaurus-plugin-content-docs/current/extensions/autoparams-kotlin.mdx +++ b/i18n/ko/docusaurus-plugin-content-docs/current/extensions/autoparams-kotlin.mdx @@ -2,7 +2,7 @@ sidebar_position: 4 --- -import { JavaKotlinCodeBlock } from '@site/src/components/JavaKotlinCodeBlock'; +import { JavaKotlinCodeBlock } from '@site/src/components/Custom'; # `autoparams-kotlin` @@ -18,7 +18,7 @@ Maven을 사용한다면, `pom.xml`에 다음 종속성을 추가하세요. io.github.autoparams autoparams-kotlin - 11.0.1 + 11.0.3 ``` @@ -27,7 +27,7 @@ Maven을 사용한다면, `pom.xml`에 다음 종속성을 추가하세요. Gradle Groovy DSL을 사용한다면, `build.gradle`에 다음 종속성을 추가하세요. ```gradle -testImplementation 'io.github.autoparams:autoparams-kotlin:11.0.1' +testImplementation 'io.github.autoparams:autoparams-kotlin:11.0.3' ``` ### Gradle (Kotlin) @@ -35,7 +35,7 @@ testImplementation 'io.github.autoparams:autoparams-kotlin:11.0.1' Gradle Kotlin DSL을 사용한다면, `build.gradle.kts`에 다음 종속성을 추가하세요. ```gradle -testImplementation("io.github.autoparams:autoparams-kotlin:11.0.1") +testImplementation("io.github.autoparams:autoparams-kotlin:11.0.3") ``` ## `@AutoKotlinParams` 애너테이션 diff --git a/i18n/ko/docusaurus-plugin-content-docs/current/extensions/autoparams-lombok.mdx b/i18n/ko/docusaurus-plugin-content-docs/current/extensions/autoparams-lombok.mdx index 3ff77dc..877ec7d 100644 --- a/i18n/ko/docusaurus-plugin-content-docs/current/extensions/autoparams-lombok.mdx +++ b/i18n/ko/docusaurus-plugin-content-docs/current/extensions/autoparams-lombok.mdx @@ -2,7 +2,7 @@ sidebar_position: 3 --- -import { JavaKotlinCodeBlock } from '@site/src/components/JavaKotlinCodeBlock'; +import { JavaKotlinCodeBlock } from '@site/src/components/Custom'; # `autoparams-lombok` @@ -18,7 +18,7 @@ Maven을 사용한다면, `pom.xml`에 다음 종속성을 추가하세요. io.github.autoparams autoparams-lombok - 11.0.1 + 11.0.3 ``` @@ -27,7 +27,7 @@ Maven을 사용한다면, `pom.xml`에 다음 종속성을 추가하세요. Gradle Groovy DSL을 사용한다면, `build.gradle`에 다음 종속성을 추가하세요. ```gradle -testImplementation 'io.github.autoparams:autoparams-lombok:11.0.1' +testImplementation 'io.github.autoparams:autoparams-lombok:11.0.3' ``` ### Gradle (Kotlin) @@ -35,7 +35,7 @@ testImplementation 'io.github.autoparams:autoparams-lombok:11.0.1' Gradle Kotlin DSL을 사용한다면, `build.gradle.kts`에 다음 종속성을 추가하세요. ```gradle -testImplementation("io.github.autoparams:autoparams-lombok:11.0.1") +testImplementation("io.github.autoparams:autoparams-lombok:11.0.3") ``` ## `BuilderCustomizer` 클래스 diff --git a/i18n/ko/docusaurus-plugin-content-docs/current/extensions/autoparams-mockito.mdx b/i18n/ko/docusaurus-plugin-content-docs/current/extensions/autoparams-mockito.mdx index 686a13a..daf2f9d 100644 --- a/i18n/ko/docusaurus-plugin-content-docs/current/extensions/autoparams-mockito.mdx +++ b/i18n/ko/docusaurus-plugin-content-docs/current/extensions/autoparams-mockito.mdx @@ -2,7 +2,7 @@ sidebar_position: 2 --- -import { JavaKotlinCodeBlock } from '@site/src/components/JavaKotlinCodeBlock'; +import { JavaKotlinCodeBlock } from '@site/src/components/Custom'; # `autoparams-mockito` @@ -18,7 +18,7 @@ Maven을 사용한다면, `pom.xml`에 다음 종속성을 추가하세요. io.github.autoparams autoparams-mockito - 11.0.1 + 11.0.3 ``` @@ -27,7 +27,7 @@ Maven을 사용한다면, `pom.xml`에 다음 종속성을 추가하세요. Gradle Groovy DSL을 사용한다면, `build.gradle`에 다음 종속성을 추가하세요. ```gradle -testImplementation 'io.github.autoparams:autoparams-mockito:11.0.1' +testImplementation 'io.github.autoparams:autoparams-mockito:11.0.3' ``` ### Gradle (Kotlin) @@ -35,7 +35,7 @@ testImplementation 'io.github.autoparams:autoparams-mockito:11.0.1' Gradle Kotlin DSL을 사용한다면, `build.gradle.kts`에 다음 종속성을 추가하세요. ```gradle -testImplementation("io.github.autoparams:autoparams-mockito:11.0.1") +testImplementation("io.github.autoparams:autoparams-mockito:11.0.3") ``` ## Mockito로 테스트 더블 생성 diff --git a/i18n/ko/docusaurus-plugin-content-docs/current/extensions/autoparams-spring.mdx b/i18n/ko/docusaurus-plugin-content-docs/current/extensions/autoparams-spring.mdx index d414b00..84111c3 100644 --- a/i18n/ko/docusaurus-plugin-content-docs/current/extensions/autoparams-spring.mdx +++ b/i18n/ko/docusaurus-plugin-content-docs/current/extensions/autoparams-spring.mdx @@ -3,7 +3,8 @@ sidebar_position: 1 sidebar_label: autoparams-spring --- -import { JavaKotlinCodeBlock } from '@site/src/components/JavaKotlinCodeBlock'; +import { JavaKotlinCodeBlock, JavadocLink } from '@site/src/components/Custom'; +import { version } from '../data.json'; # `autoparams-spring` @@ -26,7 +27,7 @@ Maven을 사용한다면, `pom.xml`에 다음 종속성을 추가하세요. io.github.autoparams autoparams-spring - 11.0.1 + 11.0.3 ``` @@ -35,7 +36,7 @@ Maven을 사용한다면, `pom.xml`에 다음 종속성을 추가하세요. Gradle Groovy DSL을 사용한다면, `build.gradle`에 다음 종속성을 추가하세요. ```gradle -testImplementation 'io.github.autoparams:autoparams-spring:11.0.1' +testImplementation 'io.github.autoparams:autoparams-spring:11.0.3' ``` ### Gradle (Kotlin) @@ -43,7 +44,7 @@ testImplementation 'io.github.autoparams:autoparams-spring:11.0.1' Gradle Kotlin DSL을 사용한다면, `build.gradle.kts`에 다음 종속성을 추가하세요. ```gradle -testImplementation("io.github.autoparams:autoparams-spring:11.0.1") +testImplementation("io.github.autoparams:autoparams-spring:11.0.3") ``` ## `@UseBeans` 애너테이션 @@ -89,7 +90,7 @@ class HelloSupplier : MessageSupplier { ``` -`MessageSupplier` 빈이 어떻게 동작하는지 테스트하려면 다음과 같이 [`@UseBeans`](https://www.javadoc.io/static/io.github.autoparams/autoparams-spring/11.0.1/autoparams/spring/UseBeans.html) 애너테이션을 사용할 수 있습니다. +`MessageSupplier` 빈이 어떻게 동작하는지 테스트하려면 다음과 같이 `@UseBeans` 애너테이션을 사용할 수 있습니다. ```java diff --git a/i18n/ko/docusaurus-plugin-content-docs/current/features/collections-and-arrays.mdx b/i18n/ko/docusaurus-plugin-content-docs/current/features/collections-and-arrays.mdx index 47ed720..4076179 100644 --- a/i18n/ko/docusaurus-plugin-content-docs/current/features/collections-and-arrays.mdx +++ b/i18n/ko/docusaurus-plugin-content-docs/current/features/collections-and-arrays.mdx @@ -3,7 +3,7 @@ sidebar_position: 4.5 sidebar_label: 컬렉션과 배열 --- -import { JavaKotlinCodeBlock } from '@site/src/components/JavaKotlinCodeBlock'; +import { JavaKotlinCodeBlock } from '@site/src/components/Custom'; # 컬렉션과 배열 diff --git a/i18n/ko/docusaurus-plugin-content-docs/current/features/constructor-selection-policy.mdx b/i18n/ko/docusaurus-plugin-content-docs/current/features/constructor-selection-policy.mdx index 55c4eda..f4a5b3d 100644 --- a/i18n/ko/docusaurus-plugin-content-docs/current/features/constructor-selection-policy.mdx +++ b/i18n/ko/docusaurus-plugin-content-docs/current/features/constructor-selection-policy.mdx @@ -3,7 +3,7 @@ sidebar_position: 7 sidebar_label: 생성자 선택 정책 --- -import { JavaKotlinCodeBlock } from '@site/src/components/JavaKotlinCodeBlock'; +import { JavaKotlinCodeBlock } from '@site/src/components/Custom'; # 생성자 선택 정책 diff --git a/i18n/ko/docusaurus-plugin-content-docs/current/features/customization.mdx b/i18n/ko/docusaurus-plugin-content-docs/current/features/customization.mdx index b7dc0b2..6a9000f 100644 --- a/i18n/ko/docusaurus-plugin-content-docs/current/features/customization.mdx +++ b/i18n/ko/docusaurus-plugin-content-docs/current/features/customization.mdx @@ -3,7 +3,8 @@ sidebar_position: 5 sidebar_label: 사용자 정의 --- -import { JavaKotlinCodeBlock } from '@site/src/components/JavaKotlinCodeBlock'; +import { JavaKotlinCodeBlock, JavadocLink } from '@site/src/components/Custom'; +import { version } from '../data.json'; # 사용자 정의 @@ -14,7 +15,7 @@ import { JavaKotlinCodeBlock } from '@site/src/components/JavaKotlinCodeBlock'; - `priceAmount`는 `10`보다 크거나 같아야 합니다. - `priceAmount`는 `10000`보다 작거나 같아야 합니다. -[`ObjectGeneratorBase`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/generator/ObjectGeneratorBase.html)를 확장한 사용자 정의 제너레이터를 사용하여 이러한 규칙을 구현할 수 있습니다. +`ObjectGeneratorBase`를 확장한 사용자 정의 제너레이터를 사용하여 이러한 규칙을 구현할 수 있습니다. ```java @@ -49,9 +50,9 @@ class ProductGenerator : ObjectGeneratorBase() { ``` -이 사용자 정의 제너레이터는 비즈니스 제약 조건을 준수하는 `Product` 인스턴스를 생성합니다. [`ResolutionContext`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/ResolutionContext.html)를 사용하여 제공되는 `id` 및 `name` 값을 생성하고 명시적 논리를 적용하여 유효한 `priceAmount`를 생성합니다. +이 사용자 정의 제너레이터는 비즈니스 제약 조건을 준수하는 `Product` 인스턴스를 생성합니다. `ResolutionContext`를 사용하여 제공되는 `id` 및 `name` 값을 생성하고 명시적 논리를 적용하여 유효한 `priceAmount`를 생성합니다. -[`@Customization`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/customization/Customization.html) 애너테이션으로 사용자 정의 제너레이터를 적용할 수 있습니다. +`@Customization` 애너테이션으로 사용자 정의 제너레이터를 적용할 수 있습니다. ```java @@ -142,7 +143,7 @@ fun testMethod(product: Product, review: Review) { ``` -또는 여러 제너레이터를 재사용 가능한 단일 구성으로 캡슐화하려는 경우 [`CompositeCustomizer`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/customization/CompositeCustomizer.html)를 확장할 수 있습니다. +또는 여러 제너레이터를 재사용 가능한 단일 구성으로 캡슐화하려는 경우 `CompositeCustomizer`를 확장할 수 있습니다. ```java @@ -312,7 +313,7 @@ class TestClass { ``` -이 예에서는 [`ArgumentCustomizationDsl`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/customization/dsl/ArgumentCustomizationDsl.html) 클래스의 [`set`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/customization/dsl/ArgumentCustomizationDsl.html#set(autoparams.customization.dsl.FunctionDelegate)) 정적 메서드를 사용하여 `ResolutionContext`의 동작을 사용자 정의합니다. 구체적으로 다음과 같은 동작을 수행합니다. +이 예에서는 `ArgumentCustomizationDsl` 클래스의 `set` 정적 메서드를 사용하여 `ResolutionContext`의 동작을 사용자 정의합니다. 구체적으로 다음과 같은 동작을 수행합니다. - 컨텍스트에서 생성된 모든 `Review` 인스턴스의 `product` 속성은 테스트 메서드의 `product` 매개변수로 설정됩니다. - 마찬가지로 `Review` 인스턴스의 `rating` 속성은 `rating` 매개변수로 설정됩니다. @@ -359,7 +360,7 @@ class TestClass { ``` -[`Factory`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/generator/Factory.html) 클래스는 단일 유형에 대한 사용자 정의 객체를 생성하는 편리한 방법을 제공합니다. 명시적으로 `ResolutionContext`를 다룰 필요 없이 테스트 대상 인스턴스에 집중할 수 있습니다. +`Factory` 클래스는 단일 유형에 대한 사용자 정의 객체를 생성하는 편리한 방법을 제공합니다. 명시적으로 `ResolutionContext`를 다룰 필요 없이 테스트 대상 인스턴스에 집중할 수 있습니다. :::note @@ -376,7 +377,7 @@ class TestClass { ## 설정 가능한 속성 -클래스가 JavaBeans 규칙을 따르는 경우(즉, 인수 없는 생성자와 공개 세터 메서드가 있는 경우) AutoParams는 [`InstancePropertyWriter`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/processor/InstancePropertyWriter.html) 커스터마이저를 사용하여 자동으로 속성을 채울 수 있습니다. +클래스가 JavaBeans 규칙을 따르는 경우(즉, 인수 없는 생성자와 공개 세터 메서드가 있는 경우) AutoParams는 `InstancePropertyWriter` 커스터마이저를 사용하여 자동으로 속성을 채울 수 있습니다. 간단한 예는 다음과 같습니다. diff --git a/i18n/ko/docusaurus-plugin-content-docs/current/features/factory.mdx b/i18n/ko/docusaurus-plugin-content-docs/current/features/factory.mdx index 7360f99..5662304 100644 --- a/i18n/ko/docusaurus-plugin-content-docs/current/features/factory.mdx +++ b/i18n/ko/docusaurus-plugin-content-docs/current/features/factory.mdx @@ -3,11 +3,12 @@ sidebar_position: 4 sidebar_label: Factory 클래스 --- -import { JavaKotlinCodeBlock } from '@site/src/components/JavaKotlinCodeBlock'; +import { JavaKotlinCodeBlock, JavadocLink } from '@site/src/components/Custom'; +import { version } from '../data.json'; # `Factory` 클래스 -[`Factory`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/generator/Factory.html) 클래스는 동일한 유형의 인스턴스를 여러 개 생성해야 할 때 유용합니다. 이 기능을 사용하여 필요에 따라 단일 인스턴스 또는 컬렉션을 생성할 수 있습니다. +`Factory` 클래스는 동일한 유형의 인스턴스를 여러 개 생성해야 할 때 유용합니다. 이 기능을 사용하여 필요에 따라 단일 인스턴스 또는 컬렉션을 생성할 수 있습니다. 다음은 그 예입니다. @@ -31,4 +32,4 @@ fun testMethod() { ``` -이 예에서는 `Product` 인스턴스를 만들기 위해 `Factory`가 생성되었습니다. [`get()`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/generator/Factory.html#get()) 메서드는 단일 인스턴스를 생성하는 반면, [`getRange(n)`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/generator/Factory.html#getRange(int,autoparams.customization.Customizer...)) 메서드는 `n`개의 인스턴스 목록을 반환합니다. +이 예에서는 `Product` 인스턴스를 만들기 위해 `Factory`가 생성되었습니다. `get()` 메서드는 단일 인스턴스를 생성하는 반면, `getRange(n)` 메서드는 `n`개의 인스턴스 목록을 반환합니다. diff --git a/i18n/ko/docusaurus-plugin-content-docs/current/features/freeze-by.mdx b/i18n/ko/docusaurus-plugin-content-docs/current/features/freeze-by.mdx index 51a765a..ebf411e 100644 --- a/i18n/ko/docusaurus-plugin-content-docs/current/features/freeze-by.mdx +++ b/i18n/ko/docusaurus-plugin-content-docs/current/features/freeze-by.mdx @@ -3,17 +3,18 @@ sidebar_position: 1 sidebar_label: '@Freeze 애너테이션' --- -import { JavaKotlinCodeBlock } from '@site/src/components/JavaKotlinCodeBlock'; +import { JavaKotlinCodeBlock, JavadocLink } from '@site/src/components/Custom'; +import { version } from '../data.json'; # `@FreezeBy` 애너테이션 -[`@FreezeBy`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/customization/FreezeBy.html) 애너테이션을 사용하면 테스트에서 값 동결을 세밀하게 제어할 수 있습니다. 단일 값을 동결하고 유형이나 이름과 같은 특정 조건과 일치하는 여러 생성 대상에서 이를 재사용할 수 있습니다. 이는 테스트 가독성을 향상시키고 생성된 값들 간의 일관성을 보장하는 데 도움이 됩니다. +`@FreezeBy` 애너테이션을 사용하면 테스트에서 값 동결을 세밀하게 제어할 수 있습니다. 단일 값을 동결하고 유형이나 이름과 같은 특정 조건과 일치하는 여러 생성 대상에서 이를 재사용할 수 있습니다. 이는 테스트 가독성을 향상시키고 생성된 값들 간의 일관성을 보장하는 데 도움이 됩니다. ## Matching Strategies AutoParams는 객체 생성 중에 동결된 값을 받아야 하는 대상을 결정하는 여러 가지 매칭 전략을 제공합니다. 다음 예에서 몇 가지 전략을 보여줍니다. -- [`EXACT_TYPE`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/customization/Matching.html#EXACT_TYPE) +- `EXACT_TYPE` 정확히 동일한 유형을 가진 모든 대상에 대해 동결된 값을 재사용합니다. @@ -72,7 +73,7 @@ AutoParams는 객체 생성 중에 동결된 값을 받아야 하는 대상을 이 예에서 `StringContainer` 내부의 `String` 필드를 포함한 모든 `String` 대상은 동일한 동결된 값으로 생성됩니다. -- [`IMPLEMENTED_INTERFACES`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/customization/Matching.html#IMPLEMENTED_INTERFACES) +- `IMPLEMENTED_INTERFACES` 동결된 값이 인터페이스를 구현하고 있다면, 해당 인터페이스 타입의 대상에도 같은 값을 재사용합니다. @@ -116,7 +117,7 @@ AutoParams는 객체 생성 중에 동결된 값을 받아야 하는 대상을 이 예에서 `String`은 `CharSequence`를 구현하므로 동결된 값 `s1`이 `chars`에 재사용됩니다. `StringContainer`는 해당 유형이 인터페이스가 아니므로 영향을 받지 않습니다. -- [`PARAMETER_NAME`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/customization/Matching.html#PARAMETER_NAME) +- `PARAMETER_NAME` 일치하는 이름을 가진 다른 대상에 대해 고정된 값을 재사용합니다. @@ -210,7 +211,7 @@ class TestClass { ## Shorthand for `EXACT_TYPE` -[`@Freeze`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/customization/Freeze.html)를 사용하는 것은 `@FreezeBy(EXACT_TYPE)`와 같습니다. 이는 가장 일반적인 매칭 전략을 간편하게 단축하는 방법입니다. +`@Freeze`를 사용하는 것은 `@FreezeBy(EXACT_TYPE)`와 같습니다. 이는 가장 일반적인 매칭 전략을 간편하게 단축하는 방법입니다. ```java diff --git a/i18n/ko/docusaurus-plugin-content-docs/current/features/parameterized.mdx b/i18n/ko/docusaurus-plugin-content-docs/current/features/parameterized.mdx index fbcb17a..edefb21 100644 --- a/i18n/ko/docusaurus-plugin-content-docs/current/features/parameterized.mdx +++ b/i18n/ko/docusaurus-plugin-content-docs/current/features/parameterized.mdx @@ -3,7 +3,8 @@ sidebar_position: 6 sidebar_label: 매개변수화된 테스트 --- -import { JavaKotlinCodeBlock } from '@site/src/components/JavaKotlinCodeBlock'; +import { JavaKotlinCodeBlock, JavadocLink } from '@site/src/components/Custom'; +import { version } from '../data.json'; # 매개변수화된 테스트 @@ -13,7 +14,7 @@ AutoParams는 **매개변수화된 테스트**도 지원하므로 여러 입력 ## `@ValueAutoSource` 애너테이션 -[`@ValueAutoSource`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/ValueAutoSource.html)(또는 `@ValueAutoKotlinSource`) 애너테이션은 AutoParams를 사용하여 매개변수화된 테스트를 작성하기 위한 간단하면서도 강력한 도구입니다. +`@ValueAutoSource`(또는 `@ValueAutoKotlinSource`) 애너테이션은 AutoParams를 사용하여 매개변수화된 테스트를 작성하기 위한 간단하면서도 강력한 도구입니다. ```java @@ -45,7 +46,7 @@ fun testMethod(name: String, factory: Factory) { ::: -이 예에서 테스트 메서드는 두 번 실행됩니다. 한 번은 `"Camera"`로, 한 번은 `"Candle"`을 `name` 매개변수 값으로 사용합니다. `factory` 매개변수는 AutoParams에 의해 자동으로 해결되며 [`freezeArgument`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/customization/dsl/ArgumentCustomizationDsl.html)와 같이 DSL을 활용하여 사용자 정의할 수 있습니다. +이 예에서 테스트 메서드는 두 번 실행됩니다. 한 번은 `"Camera"`로, 한 번은 `"Candle"`을 `name` 매개변수 값으로 사용합니다. `factory` 매개변수는 AutoParams에 의해 자동으로 해결되며 `freezeArgument`와 같이 DSL을 활용하여 사용자 정의할 수 있습니다. 이를 통해 부분적으로 제어되고(예: 고정된 이름) 부분적으로 무작위화되는(예: 기타 모든 속성) 테스트 개체(이 경우 `Product`)를 생성하여 구체성과 다양성 사이의 균형을 유지할 수 있습니다. @@ -64,7 +65,7 @@ fun testMethod(name: String, factory: Factory) { ## `@CsvAutoSource` 애너테이션 -[`@CsvAutoSource`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/CsvAutoSource.html)(또는 `@CsvAutoKotlinSource`) 애너테이션을 사용하면 JUnit 5의 @CsvSource와 유사한 CSV 형식으로 반복되는 테스트 입력을 정의할 수 있습니다. CSV 행에 명시적으로 제공되지 않은 모든 매개변수는 AutoParams에서 자동으로 생성됩니다. +`@CsvAutoSource`(또는 `@CsvAutoKotlinSource`) 애너테이션을 사용하면 JUnit 5의 @CsvSource와 유사한 CSV 형식으로 반복되는 테스트 입력을 정의할 수 있습니다. CSV 행에 명시적으로 제공되지 않은 모든 매개변수는 AutoParams에서 자동으로 생성됩니다. ```java @@ -100,7 +101,7 @@ fun testMethod(name: String, priceAmount: BigDecimal, id: UUID) { ## `@MethodAutoSource` 애너테이션 -[`@MethodAutoSource`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/MethodAutoSource.html)(또는 `@MethodAutoKotlinSource`) 애너테이션은 JUnit 5의 `@MethodSource`와 AutoParams의 `@AutoSource` 기능을 결합합니다. 이를 사용하여 테스트 데이터를 제공하는 메서드를 지정할 수 있으며, AutoParams는 나머지 매개변수를 자동으로 채웁니다. +`@MethodAutoSource`(또는 `@MethodAutoKotlinSource`) 애너테이션은 JUnit 5의 `@MethodSource`와 AutoParams의 `@AutoSource` 기능을 결합합니다. 이를 사용하여 테스트 데이터를 제공하는 메서드를 지정할 수 있으며, AutoParams는 나머지 매개변수를 자동으로 채웁니다. ```java @@ -145,7 +146,7 @@ companion object { ## `@Repeat` 애너테이션 -[`@Repeat`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/Repeat.html) 애너테이션을 사용하면 테스트를 여러 번 실행할 수 있으며, 각 실행에서 지정되지 않은 매개변수에 대해 새로운 임의 값을 생성할 수 있습니다. +`@Repeat` 애너테이션을 사용하면 테스트를 여러 번 실행할 수 있으며, 각 실행에서 지정되지 않은 매개변수에 대해 새로운 임의 값을 생성할 수 있습니다. ```java diff --git a/i18n/ko/docusaurus-plugin-content-docs/current/features/range-of-values.mdx b/i18n/ko/docusaurus-plugin-content-docs/current/features/range-of-values.mdx index 262d3dd..234f9b1 100644 --- a/i18n/ko/docusaurus-plugin-content-docs/current/features/range-of-values.mdx +++ b/i18n/ko/docusaurus-plugin-content-docs/current/features/range-of-values.mdx @@ -3,7 +3,7 @@ sidebar_position: 2 sidebar_label: 값의 범위 설정 --- -import { JavaKotlinCodeBlock } from '@site/src/components/JavaKotlinCodeBlock'; +import { JavaKotlinCodeBlock } from '@site/src/components/Custom'; # 값의 범위 설정 diff --git a/i18n/ko/docusaurus-plugin-content-docs/current/features/resolution-context.mdx b/i18n/ko/docusaurus-plugin-content-docs/current/features/resolution-context.mdx index 9e30ade..df06893 100644 --- a/i18n/ko/docusaurus-plugin-content-docs/current/features/resolution-context.mdx +++ b/i18n/ko/docusaurus-plugin-content-docs/current/features/resolution-context.mdx @@ -3,11 +3,12 @@ sidebar_position: 3 sidebar_label: ResolutionContext 클래스 --- -import { JavaKotlinCodeBlock } from '@site/src/components/JavaKotlinCodeBlock'; +import { JavaKotlinCodeBlock, JavadocLink } from '@site/src/components/Custom'; +import { version } from '../data.json'; # `ResolutionContext` 클래스 -[`ResolutionContext`](https://www.javadoc.io/static/io.github.autoparams/autoparams/11.0.1/autoparams/ResolutionContext.html) 클래스는 테스트 데이터를 생성하기 위한 핵심 메커니즘을 제공합니다. AutoParams에서 내부적으로 사용되지만, 필요할 때 직접 테스트 코드에서 인스턴스화하고 사용할 수 있습니다. +`ResolutionContext` 클래스는 테스트 데이터를 생성하기 위한 핵심 메커니즘을 제공합니다. AutoParams에서 내부적으로 사용되지만, 필요할 때 직접 테스트 코드에서 인스턴스화하고 사용할 수 있습니다. 다음은 예입니다. diff --git a/i18n/ko/docusaurus-plugin-content-docs/current/getting-started.mdx b/i18n/ko/docusaurus-plugin-content-docs/current/getting-started.mdx index f7a7cf4..d879476 100644 --- a/i18n/ko/docusaurus-plugin-content-docs/current/getting-started.mdx +++ b/i18n/ko/docusaurus-plugin-content-docs/current/getting-started.mdx @@ -20,7 +20,7 @@ Maven을 사용한다면, `pom.xml`에 다음 종속성을 추가하세요. io.github.autoparams autoparams - 11.0.1 + 11.0.3 ``` @@ -29,7 +29,7 @@ Maven을 사용한다면, `pom.xml`에 다음 종속성을 추가하세요. Gradle Groovy DSL을 사용한다면, `build.gradle`에 다음 종속성을 추가하세요. ```gradle -testImplementation 'io.github.autoparams:autoparams:11.0.1' +testImplementation 'io.github.autoparams:autoparams:11.0.3' ``` ### Gradle (Kotlin) @@ -37,5 +37,5 @@ testImplementation 'io.github.autoparams:autoparams:11.0.1' Gradle Kotlin DSL을 사용한다면, `build.gradle.kts`에 다음 종속성을 추가하세요. ```gradle -testImplementation("io.github.autoparams:autoparams:11.0.1") +testImplementation("io.github.autoparams:autoparams:11.0.3") ``` diff --git a/i18n/ko/docusaurus-plugin-content-docs/current/overview.mdx b/i18n/ko/docusaurus-plugin-content-docs/current/overview.mdx index 5c5ef7a..37b43db 100644 --- a/i18n/ko/docusaurus-plugin-content-docs/current/overview.mdx +++ b/i18n/ko/docusaurus-plugin-content-docs/current/overview.mdx @@ -3,7 +3,7 @@ slug: / sidebar_position: 1 --- -import { JavaKotlinCodeBlock } from '@site/src/components/JavaKotlinCodeBlock'; +import { JavaKotlinCodeBlock } from '@site/src/components/Custom'; # 개요 diff --git a/src/components/Custom/index.tsx b/src/components/Custom/index.tsx new file mode 100644 index 0000000..eddc225 --- /dev/null +++ b/src/components/Custom/index.tsx @@ -0,0 +1,4 @@ +import { JavaKotlinCodeBlock } from '@site/src/components/JavaKotlinCodeBlock'; +import { JavadocLink } from '@site/src/components/JavadocLink'; + +export { JavaKotlinCodeBlock, JavadocLink }; \ No newline at end of file diff --git a/src/components/JavadocLink/index.tsx b/src/components/JavadocLink/index.tsx new file mode 100644 index 0000000..88f8be1 --- /dev/null +++ b/src/components/JavadocLink/index.tsx @@ -0,0 +1,14 @@ + +const JAVADOC_BASEURL = 'https://www.javadoc.io/static/io.github.autoparams/autoparams'; + +const JavadocLink = ({version, path, children}) => { + return (<> + {children} + ) +}; + +export { JavadocLink }; \ No newline at end of file