From 08c618731d1fd6842e197dd2ceffb53f6fb3c8e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=8B=E1=85=B5=E1=84=80=E1=85=A5=E1=86=AB=E1=84=8E?= =?UTF-8?q?=E1=85=A1=E1=86=BC?= Date: Mon, 22 Jan 2024 07:43:05 +0900 Subject: [PATCH 1/4] chore(docs) : add english text to be compared --- .../generating-complex-types.md | 118 +++++++++++++++++- 1 file changed, 117 insertions(+), 1 deletion(-) diff --git a/docs/content/v1.0.x-kor/docs/generating-objects/generating-complex-types.md b/docs/content/v1.0.x-kor/docs/generating-objects/generating-complex-types.md index ecec039ad..6f1a60851 100644 --- a/docs/content/v1.0.x-kor/docs/generating-objects/generating-complex-types.md +++ b/docs/content/v1.0.x-kor/docs/generating-objects/generating-complex-types.md @@ -8,4 +8,120 @@ identifier: "generating-complex-types" weight: 32 --- -### 한국어 번역 필요 +Fixture Monkey is capable of generating complex objects that are difficult to create as test fixtures. + +This page contains examples of the various types of objects that can be generated. + +## Java +### Generic Objects +```java +@Value +public static class GenericObject { + T foo; +} + +@Value +public static class GenericArrayObject { + GenericObject[] foo; +} + +@Value +public static class TwoGenericObject { + T foo; + U bar; +} + +@Value +public static class ThreeGenericObject { + T foo; + U bar; + V baz; +} +``` + +### Generic Interfaces +```java +public interface GenericInterface { +} + +@Value +public static class GenericInterfaceImpl implements GenericInterface { + T foo; +} + +public interface TwoGenericInterface { +} + +@Value +public static class TwoGenericImpl implements TwoGenericInterface { + T foo; + + U bar; +} +``` + +### SelfReference +```java +@Value +public class SelfReference { + String foo; + SelfReference bar; +} + +@Value +public class SelfReferenceList { + String foo; + List bar; +} +``` + +### Interface +```java +public interface Interface { + String foo(); + + Integer bar(); +} + +public interface InheritedInterface extends Interface { + String foo(); +} + +public interface InheritedInterfaceWithSameNameMethod extends Interface { + String foo(); +} + +public interface ContainerInterface { + List baz(); + + Map qux(); +} + +public interface InheritedTwoInterface extends Interface, ContainerInterface { +} +``` + +## Kotlin +### Generic Objects +```kotlin +class Generic(val foo: T) + +class GenericImpl(val foo: Generic) +``` + +### SelfReference +```kotlin +class SelfReference(val foo: String, val bar: SelfReference?) +``` + +### Sealed class, Value class +```kotlin +sealed class SealedClass + +object ObjectSealedClass : SealedClass() + +class SealedClassImpl(val foo: String) : SealedClass() + +@JvmInline +value class ValueClass(val foo: String) +``` From 0bfaa63f9e46515749368ee8af5b90dfc9aef417 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=8B=E1=85=B5=E1=84=80=E1=85=A5=E1=86=AB=E1=84=8E?= =?UTF-8?q?=E1=85=A1=E1=86=BC?= Date: Mon, 22 Jan 2024 07:43:40 +0900 Subject: [PATCH 2/4] fix(docs) : translate korean --- .../docs/generating-objects/generating-complex-types.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/v1.0.x-kor/docs/generating-objects/generating-complex-types.md b/docs/content/v1.0.x-kor/docs/generating-objects/generating-complex-types.md index 6f1a60851..206d0fa85 100644 --- a/docs/content/v1.0.x-kor/docs/generating-objects/generating-complex-types.md +++ b/docs/content/v1.0.x-kor/docs/generating-objects/generating-complex-types.md @@ -8,9 +8,9 @@ identifier: "generating-complex-types" weight: 32 --- -Fixture Monkey is capable of generating complex objects that are difficult to create as test fixtures. +Fixture Monkey는 생성하기 어려운 객체를 테스트 픽스처로 쉽게 생성할 수 있습니다. -This page contains examples of the various types of objects that can be generated. +이 페이지는 생성할 수 있는 다양한 타입의 객체를 보여줍니다. ## Java ### Generic Objects From 4c6816bf7e9a8f017230f1261e255d756aa4abfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=8B=E1=85=B5=E1=84=80=E1=85=A5=E1=86=AB=E1=84=8E?= =?UTF-8?q?=E1=85=A1=E1=86=BC?= Date: Mon, 22 Jan 2024 07:47:19 +0900 Subject: [PATCH 3/4] fix(docs) : correction of vocabulary --- .../docs/generating-objects/generating-complex-types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/v1.0.x-kor/docs/generating-objects/generating-complex-types.md b/docs/content/v1.0.x-kor/docs/generating-objects/generating-complex-types.md index 206d0fa85..e4e9c8cea 100644 --- a/docs/content/v1.0.x-kor/docs/generating-objects/generating-complex-types.md +++ b/docs/content/v1.0.x-kor/docs/generating-objects/generating-complex-types.md @@ -8,7 +8,7 @@ identifier: "generating-complex-types" weight: 32 --- -Fixture Monkey는 생성하기 어려운 객체를 테스트 픽스처로 쉽게 생성할 수 있습니다. +Fixture Monkey는 생성하기 어려울 정도로 복잡한 객체를 테스트 픽스처로 쉽게 생성할 수 있습니다. 이 페이지는 생성할 수 있는 다양한 타입의 객체를 보여줍니다. From dc687797f250e6e4647c3459acd5a6cf591d9cd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=8B=E1=85=B5=E1=84=80=E1=85=A5=E1=86=AB=E1=84=8E?= =?UTF-8?q?=E1=85=A1=E1=86=BC?= <92219795+this-is-spear@users.noreply.github.com> Date: Mon, 22 Jan 2024 16:10:35 +0900 Subject: [PATCH 4/4] fix(docs) : modify to be the same as the previous document too --- .../docs/generating-objects/generating-complex-types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/v1.0.x-kor/docs/generating-objects/generating-complex-types.md b/docs/content/v1.0.x-kor/docs/generating-objects/generating-complex-types.md index e4e9c8cea..9c8b5ad61 100644 --- a/docs/content/v1.0.x-kor/docs/generating-objects/generating-complex-types.md +++ b/docs/content/v1.0.x-kor/docs/generating-objects/generating-complex-types.md @@ -8,7 +8,7 @@ identifier: "generating-complex-types" weight: 32 --- -Fixture Monkey는 생성하기 어려울 정도로 복잡한 객체를 테스트 픽스처로 쉽게 생성할 수 있습니다. +Fixture Monkey는 직접 생성하기 어려운 복잡한 객체도 테스트 픽스처로 쉽게 생성할 수 있습니다. 이 페이지는 생성할 수 있는 다양한 타입의 객체를 보여줍니다.