It's possible to override a property with list attribute?

21 views
Skip to first unread message

Anderson Carvalho

unread,
Sep 15, 2016, 7:50:44 PM9/15/16
to fixture-factory
Considering that Student has a List/Set of Address. I want override addresses property like below:

Student student = Fixture.from(Student.class).gimme("valid", new Rule() {{
add("addresses[0].id", 123456L);
add("addresses[0].city.name", "BH");
add("addresses[0].city.neighborhoods[0].name", "Santa Efigênia");
}});
 

Has fixture-factory  some way to do that?

Anderson Carvalho

unread,
Sep 19, 2016, 10:54:43 AM9/19/16
to fixture-factory
I have opened a Pull Request for this: https://github.com/six2six/fixture-factory/pull/89
Reply all
Reply to author
Forward
0 new messages