示例#1
0
  @Test
  public void localConfigurationObjectsInCollectionsCanBeOverridenWithDefaultValue() {
    final Person uniqueSize1 =
        ObjectG.unique(Person.class, ObjectG.config().setObjectsInCollection(1));

    assertEquals("uniqueSize1", 1, uniqueSize1.getEmployee2Addresses().size());
  }
示例#2
0
 @Test
 public void localConfigurationCanDefineObjectsInCollections() {
   final Person unique = ObjectG.unique(Person.class);
   assertEquals(2, unique.getEmployee2Addresses().size());
 }