Examples of OneDimensionalChildPojo


Examples of uk.co.jemos.podam.test.dto.OneDimensionalChildPojo

  }

  @Test
  public void testInheritance() {

    OneDimensionalChildPojo pojo = factory
        .manufacturePojo(OneDimensionalChildPojo.class);
    Assert.assertNotNull("The pojo cannot be null!", pojo);
    int parentIntField = pojo.getParentIntField();
    Assert.assertTrue("The super int field must be <= 10",
        parentIntField <= 10);
    Calendar parentCalendarField = pojo.getParentCalendarField();
    checkCalendarIsValid(parentCalendarField);
    int intField = pojo.getIntField();
    Assert.assertTrue("The int field must be different from zero!",
        intField != 0);
    String strField = pojo.getStrField();
    Assert.assertNotNull("The string field cannot be null!", strField);
    Assert.assertTrue("The String field cannot be empty",
        strField.length() != 0);

  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.