From 578d3983e22b78e8e176ab7e5e3b3c6e03c73f3a Mon Sep 17 00:00:00 2001 From: Sander Hautvast Date: Tue, 14 Jan 2020 22:19:25 +0100 Subject: [PATCH] extra readme --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7feabe2..218b529 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ class Person{ ``` Factory.define(Person.class, () -> new Person("John", 48)); ``` -* Create instances like so: +* Then create instances like so: ``` Person person = Factory.build(Person.class) ``` @@ -31,8 +31,15 @@ Person person = Factory.build(Person.class) Person person = Factory.build(Person.class, p -> p.setAge(25)); ``` This will result in an object -```json +``` {name: "John", age: 25} ``` Meaning the template can be customized later on + +_More features_ +* Factory can also create more complex (nested) objects +* random numbers +* counters +* etc see FactoryTests.java + \ No newline at end of file