@Test public void localConfigurationObjectsInCollectionsCanBeOverridenWithDefaultValue() { final Person uniqueSize1 = ObjectG.unique(Person.class, ObjectG.config().setObjectsInCollection(1)); assertEquals("uniqueSize1", 1, uniqueSize1.getEmployee2Addresses().size()); }
@Test public void localConfigurationCanDefineObjectsInCollections() { final Person unique = ObjectG.unique(Person.class); assertEquals(2, unique.getEmployee2Addresses().size()); }