Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.04 KB

README.md

File metadata and controls

46 lines (32 loc) · 1.04 KB

Maven Central

AutoCreate

A simple object creation library for unit tests

Installation

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'

Usage

//GIVEN
MyRequest request = AutoCreate.build(MyRequest.class)
                              .with(x -> x.setMyProperty("test")
                              .create();

//WHEN
String response = myClass.myAwesomeMethod(request);

//THEN
assertEquals("myString", response);

Contributing

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.

License

MIT