Examples of ImmutableNoHierarchicalAnnotatedPojo


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

  }

  @Test
  public void testImmutableNoHierarchicalAnnotatedPojo() {

    ImmutableNoHierarchicalAnnotatedPojo pojo = factory
        .manufacturePojo(ImmutableNoHierarchicalAnnotatedPojo.class);
    Assert.assertNotNull("The Immutable Simple Pojo cannot be null!", pojo);
    int intField = pojo.getIntField();
    Assert.assertTrue("The int field cannot be zero", intField != 0);
    Calendar dateCreated = pojo.getDateCreated();
    Assert.assertNotNull(
        "The Date Created Calendar object cannot be null!", dateCreated);
    Assert.assertNotNull(
        "The Date object within the dateCreated Calendar object cannot be null!",
        dateCreated.getTime());
    long[] longArray = pojo.getLongArray();
    Assert.assertNotNull("The array of longs cannot be null!", longArray);
    Assert.assertTrue("The array of longs cannot be empty!",
        longArray.length > 0);
    long longElement = longArray[0];
    Assert.assertTrue(
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.