A simple object creation library for unit tests
Apache Maven
<dependency>
<groupId>com.github.ertugrulungor</groupId>
<artifactId>AutoCreate</artifactId>
<version>1.0.0</version>
</dependency>
Gradle
compile 'com.github.ertugrulungor:AutoCreate:1.0.0'
//GIVEN
MyRequest request = AutoCreate.build(MyRequest.class)
.with(x -> x.setMyProperty("test")
.create();
//WHEN
String response = myClass.myAwesomeMethod(request);
//THEN
assertEquals("myString", response);
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.