Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/data.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "11.1.1"
"version": "11.2.0"
}
6 changes: 3 additions & 3 deletions docs/extensions/autoparams-kotlin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ For Maven, you can add the following dependency to your `pom.xml`:
<dependency>
<groupId>io.github.autoparams</groupId>
<artifactId>autoparams-kotlin</artifactId>
<version>11.1.1</version>
<version>11.2.0</version>
</dependency>
```

Expand All @@ -27,15 +27,15 @@ 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.1.1'
testImplementation 'io.github.autoparams:autoparams-kotlin:11.2.0'
```

### Gradle (Kotlin)

For Gradle Kotlin DSL, use:

```gradle
testImplementation("io.github.autoparams:autoparams-kotlin:11.1.1")
testImplementation("io.github.autoparams:autoparams-kotlin:11.2.0")
```

## `@AutoKotlinParams` Annotation
Expand Down
6 changes: 3 additions & 3 deletions docs/extensions/autoparams-lombok.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ For Maven, you can add the following dependency to your `pom.xml`:
<dependency>
<groupId>io.github.autoparams</groupId>
<artifactId>autoparams-lombok</artifactId>
<version>11.1.1</version>
<version>11.2.0</version>
</dependency>
```

Expand All @@ -27,15 +27,15 @@ 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.1.1'
testImplementation 'io.github.autoparams:autoparams-lombok:11.2.0'
```

### Gradle (Kotlin)

For Gradle Kotlin DSL, use:

```gradle
testImplementation("io.github.autoparams:autoparams-lombok:11.1.1")
testImplementation("io.github.autoparams:autoparams-lombok:11.2.0")
```

## `BuilderCustomizer` Class
Expand Down
6 changes: 3 additions & 3 deletions docs/extensions/autoparams-mockito.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ For Maven, you can add the following dependency to your `pom.xml`:
<dependency>
<groupId>io.github.autoparams</groupId>
<artifactId>autoparams-mockito</artifactId>
<version>11.1.1</version>
<version>11.2.0</version>
</dependency>
```

Expand All @@ -27,15 +27,15 @@ 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.1.1'
testImplementation 'io.github.autoparams:autoparams-mockito:11.2.0'
```

### Gradle (Kotlin)

For Gradle Kotlin DSL, use:

```gradle
testImplementation("io.github.autoparams:autoparams-mockito:11.1.1")
testImplementation("io.github.autoparams:autoparams-mockito:11.2.0")
```

## Generating Test Doubles with Mockito
Expand Down
6 changes: 3 additions & 3 deletions docs/extensions/autoparams-spring.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ For Maven, you can add the following dependency to your pom.xml:
<dependency>
<groupId>io.github.autoparams</groupId>
<artifactId>autoparams-spring</artifactId>
<version>11.1.1</version>
<version>11.2.0</version>
</dependency>
```

Expand All @@ -36,15 +36,15 @@ For Maven, you can add the following dependency to your pom.xml:
For Gradle Groovy, use:

```gradle
testImplementation 'io.github.autoparams:autoparams-spring:11.1.1'
testImplementation 'io.github.autoparams:autoparams-spring:11.2.0'
```

### Gradle (Kotlin)

For Gradle Kotlin, use:

```gradle
testImplementation("io.github.autoparams:autoparams-spring:11.1.1")
testImplementation("io.github.autoparams:autoparams-spring:11.2.0")
```

## `@UseBeans` Annotation
Expand Down
29 changes: 8 additions & 21 deletions docs/features/logging-for-object-resolution.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,29 +54,16 @@ fun testMethod(user: User) {
Will print a hierarchical visualization of the resolution process:

```text
> Resolving: for class your.app.User
|-- > Resolving: for interface autoparams.generator.ConstructorResolver
| |-- > Resolving: for interface autoparams.generator.ConstructorExtractor
| | < Resolved(<1 ms): autoparams.generator.DefaultConstructorExtractor@5807ea46 for interface autoparams.generator.ConstructorExtractor
| < Resolved(<1 ms): autoparams.generator.CompositeConstructorResolver@305289b3 for interface autoparams.generator.ConstructorResolver
|
|-- > Resolving: for Parameter java.util.UUID id
| < Resolved(<1 ms): 2c792f91-2fb8-41c0-a7af-5bda64192949 for Parameter java.util.UUID id
|
|-- > Resolving: for Parameter java.lang.String email
| |-- > Resolving: for class autoparams.generator.EmailAddressGenerationOptions
| | < Resolved(<1 ms): EmailAddressGenerationOptions[domains=["test.com"]] for class autoparams.generator.EmailAddressGenerationOptions
| < Resolved(1 ms): [email protected] for Parameter java.lang.String email
|
|-- > Resolving: for Parameter java.lang.String username
| < Resolved(<1 ms): username24cbc137-4990-414b-9af7-39ae7ce1b437 for Parameter java.lang.String username
< Resolved(1 ms): your.app.User@33e4068 for class your.app.User
User user (5ms)
├─ UUID id → fbdf7aa8-1af7-4308-bc64-ee9dbfeba8d2 (1ms)
├─ String email → [email protected] (2ms)
└─ String username → usernamec6962921-ab77-4dbc-a71d-6932a9faa5be (1ms)
```

The log uses the following symbols to represent the resolution flow:
- `>` indicates the start of a resolution attempt
- `|--` shows nested resolution steps
- `<` indicates successful resolution
The log uses a tree structure to show the resolution hierarchy:
- Each level shows the query type and parameter name
- `→` indicates the generated value
- Time taken for each resolution is shown in parentheses
- Indentation levels represent the depth of the resolution chain

This logging is particularly valuable when working with:
Expand Down
6 changes: 3 additions & 3 deletions docs/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ For Maven, you can add the following dependency to your `pom.xml`:
<dependency>
<groupId>io.github.autoparams</groupId>
<artifactId>autoparams</artifactId>
<version>11.1.1</version>
<version>11.2.0</version>
</dependency>
```

Expand All @@ -29,13 +29,13 @@ For Maven, you can add the following dependency to your `pom.xml`:
For Gradle Groovy DSL, use:

```gradle
testImplementation 'io.github.autoparams:autoparams:11.1.1'
testImplementation 'io.github.autoparams:autoparams:11.2.0'
```

### Gradle (Kotlin)

For Gradle Kotlin DSL, use:

```gradle
testImplementation("io.github.autoparams:autoparams:11.1.1")
testImplementation("io.github.autoparams:autoparams:11.2.0")
```
2 changes: 1 addition & 1 deletion i18n/ko/docusaurus-plugin-content-docs/current/data.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "11.1.1"
"version": "11.2.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Maven을 사용한다면, `pom.xml`에 다음 종속성을 추가하세요.
<dependency>
<groupId>io.github.autoparams</groupId>
<artifactId>autoparams-kotlin</artifactId>
<version>11.1.1</version>
<version>11.2.0</version>
</dependency>
```

Expand All @@ -27,15 +27,15 @@ Maven을 사용한다면, `pom.xml`에 다음 종속성을 추가하세요.
Gradle Groovy DSL을 사용한다면, `build.gradle`에 다음 종속성을 추가하세요.

```gradle
testImplementation 'io.github.autoparams:autoparams-kotlin:11.1.1'
testImplementation 'io.github.autoparams:autoparams-kotlin:11.2.0'
```

### Gradle (Kotlin)

Gradle Kotlin DSL을 사용한다면, `build.gradle.kts`에 다음 종속성을 추가하세요.

```gradle
testImplementation("io.github.autoparams:autoparams-kotlin:11.1.1")
testImplementation("io.github.autoparams:autoparams-kotlin:11.2.0")
```

## `@AutoKotlinParams` 애너테이션
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Maven을 사용한다면, `pom.xml`에 다음 종속성을 추가하세요.
<dependency>
<groupId>io.github.autoparams</groupId>
<artifactId>autoparams-lombok</artifactId>
<version>11.1.1</version>
<version>11.2.0</version>
</dependency>
```

Expand All @@ -27,15 +27,15 @@ Maven을 사용한다면, `pom.xml`에 다음 종속성을 추가하세요.
Gradle Groovy DSL을 사용한다면, `build.gradle`에 다음 종속성을 추가하세요.

```gradle
testImplementation 'io.github.autoparams:autoparams-lombok:11.1.1'
testImplementation 'io.github.autoparams:autoparams-lombok:11.2.0'
```

### Gradle (Kotlin)

Gradle Kotlin DSL을 사용한다면, `build.gradle.kts`에 다음 종속성을 추가하세요.

```gradle
testImplementation("io.github.autoparams:autoparams-lombok:11.1.1")
testImplementation("io.github.autoparams:autoparams-lombok:11.2.0")
```

## `BuilderCustomizer` 클래스
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Maven을 사용한다면, `pom.xml`에 다음 종속성을 추가하세요.
<dependency>
<groupId>io.github.autoparams</groupId>
<artifactId>autoparams-mockito</artifactId>
<version>11.1.1</version>
<version>11.2.0</version>
</dependency>
```

Expand All @@ -27,15 +27,15 @@ Maven을 사용한다면, `pom.xml`에 다음 종속성을 추가하세요.
Gradle Groovy DSL을 사용한다면, `build.gradle`에 다음 종속성을 추가하세요.

```gradle
testImplementation 'io.github.autoparams:autoparams-mockito:11.1.1'
testImplementation 'io.github.autoparams:autoparams-mockito:11.2.0'
```

### Gradle (Kotlin)

Gradle Kotlin DSL을 사용한다면, `build.gradle.kts`에 다음 종속성을 추가하세요.

```gradle
testImplementation("io.github.autoparams:autoparams-mockito:11.1.1")
testImplementation("io.github.autoparams:autoparams-mockito:11.2.0")
```

## Mockito로 테스트 더블 생성
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Maven을 사용한다면, `pom.xml`에 다음 종속성을 추가하세요.
<dependency>
<groupId>io.github.autoparams</groupId>
<artifactId>autoparams-spring</artifactId>
<version>11.1.1</version>
<version>11.2.0</version>
</dependency>
```

Expand All @@ -36,15 +36,15 @@ Maven을 사용한다면, `pom.xml`에 다음 종속성을 추가하세요.
Gradle Groovy DSL을 사용한다면, `build.gradle`에 다음 종속성을 추가하세요.

```gradle
testImplementation 'io.github.autoparams:autoparams-spring:11.1.1'
testImplementation 'io.github.autoparams:autoparams-spring:11.2.0'
```

### Gradle (Kotlin)

Gradle Kotlin DSL을 사용한다면, `build.gradle.kts`에 다음 종속성을 추가하세요.

```gradle
testImplementation("io.github.autoparams:autoparams-spring:11.1.1")
testImplementation("io.github.autoparams:autoparams-spring:11.2.0")
```

## `@UseBeans` 애너테이션
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,29 +54,16 @@ fun testMethod(user: User) {
해결 프로세스의 계층적 시각화를 출력합니다.

```text
> Resolving: for class your.app.User
|-- > Resolving: for interface autoparams.generator.ConstructorResolver
| |-- > Resolving: for interface autoparams.generator.ConstructorExtractor
| | < Resolved(<1 ms): autoparams.generator.DefaultConstructorExtractor@5807ea46 for interface autoparams.generator.ConstructorExtractor
| < Resolved(<1 ms): autoparams.generator.CompositeConstructorResolver@305289b3 for interface autoparams.generator.ConstructorResolver
|
|-- > Resolving: for Parameter java.util.UUID id
| < Resolved(<1 ms): 2c792f91-2fb8-41c0-a7af-5bda64192949 for Parameter java.util.UUID id
|
|-- > Resolving: for Parameter java.lang.String email
| |-- > Resolving: for class autoparams.generator.EmailAddressGenerationOptions
| | < Resolved(<1 ms): EmailAddressGenerationOptions[domains=["test.com"]] for class autoparams.generator.EmailAddressGenerationOptions
| < Resolved(1 ms): [email protected] for Parameter java.lang.String email
|
|-- > Resolving: for Parameter java.lang.String username
| < Resolved(<1 ms): username24cbc137-4990-414b-9af7-39ae7ce1b437 for Parameter java.lang.String username
< Resolved(1 ms): your.app.User@33e4068 for class your.app.User
User user (5ms)
├─ UUID id → fbdf7aa8-1af7-4308-bc64-ee9dbfeba8d2 (1ms)
├─ String email → [email protected] (2ms)
└─ String username → usernamec6962921-ab77-4dbc-a71d-6932a9faa5be (1ms)
```

로그에서 다음 기호들을 사용하여 해결 흐름을 나타냅니다.
- `>` 는 해결 시도의 시작을 나타냅니다.
- `|--` 는 중첩된 해결 단계를 표시합니다.
- `<` 는 성공한 해결을 표시합니다.
로그는 트리 구조를 사용하여 해결 계층 구조를 보여줍니다.
- 각 수준은 쿼리 유형과 매개변수 이름을 보여줍니다.
- `→`는 생성된 값을 나타냅니다.
- 각 해결에 걸린 시간은 괄호 안에 표시됩니다.
- 들여쓰기 수준은 해결 체인의 깊이를 나타냅니다.

이 로깅은 다음과 같은 작업에서 특히 유용합니다.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Maven을 사용한다면, `pom.xml`에 다음 종속성을 추가하세요.
<dependency>
<groupId>io.github.autoparams</groupId>
<artifactId>autoparams</artifactId>
<version>11.1.1</version>
<version>11.2.0</version>
</dependency>
```

Expand All @@ -29,13 +29,13 @@ Maven을 사용한다면, `pom.xml`에 다음 종속성을 추가하세요.
Gradle Groovy DSL을 사용한다면, `build.gradle`에 다음 종속성을 추가하세요.

```gradle
testImplementation 'io.github.autoparams:autoparams:11.1.1'
testImplementation 'io.github.autoparams:autoparams:11.2.0'
```

### Gradle (Kotlin)

Gradle Kotlin DSL을 사용한다면, `build.gradle.kts`에 다음 종속성을 추가하세요.

```gradle
testImplementation("io.github.autoparams:autoparams:11.1.1")
testImplementation("io.github.autoparams:autoparams:11.2.0")
```