naver / fixture-monkey

Let Fixture Monkey generate test instances including edge cases automatically
https://naver.github.io/fixture-monkey
Apache License 2.0
561 stars 89 forks source link

Improve Documentation ver 2 #760

Closed SooKim1110 closed 8 months ago

SooKim1110 commented 1 year ago

Document Version 2 is now live at: https://naver.github.io/fixture-monkey/

The new document aims to be more user-friendly and is written in a more detailed manner compared to the previous version.

This issue lists some improvements that should be made to the document:

seongahjo commented 11 months ago

Java

@Value  
public class SelfReference {  
   String foo;  
   SelfReference bar;  
}  

@Value  
public class SelfReferenceList {  
   String foo;  
   List<SelfReferenceList> bar;  
}

public interface GenericInterface<T> {  
}  

@Value  
public static class GenericInterfaceImpl<T> implements GenericInterface<T> {
   T foo;  
}  

public interface TwoGenericInterface<T, U> {  
}  

@Value 
public static class TwoGenericImpl<T, U> implements TwoGenericInterface<T, U> {  
   T foo;  

   U bar;  
} 

@Value 
public static class GenericObject<T> {  
   T foo;  
}

@Value 
public static class GenericArrayObject<T> {  
   GenericObject<T>[] foo;  
}  

@Value 
public static class TwoGenericObject<T, U> {  
   T foo;  
   U bar;  
}  

@Value   
public static class ThreeGenericObject<T, U, V> {  
   T foo;  
   U bar;  
   V baz;  
}

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<String> baz();  

   Map<String, Integer> qux();  
}

public interface InheritedTwoInterface extends Interface, ContainerInterface { 
}

Kotlin

class SelfReference(val foo: String, val bar: SelfReference?)

class Generic<T>(val foo: T)  

class GenericImpl(val foo: Generic<String>)

sealed class SealedClass  

object ObjectSealedClass : SealedClass()  

class SealedClassImpl(val foo: String) : SealedClass()

@JvmInline  
value class ValueClass(val foo: String)
seongahjo commented 10 months ago
SooKim1110 commented 10 months ago
seongahjo commented 10 months ago
seongahjo commented 9 months ago
seongahjo commented 9 months ago
SooKim1110 commented 8 months ago

Closing this issue as it will be actively maintained in the Discussions page:

https://github.com/naver/fixture-monkey/discussions/858 https://github.com/naver/fixture-monkey/discussions/859