Package uk.co.jemos.podam.test.dto

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


  }

  @Test
  public void testImmutableNonAnnotatedPojo() {

    ImmutableNonAnnotatedPojo pojo = factory
        .manufacturePojo(ImmutableNonAnnotatedPojo.class);
    Assert.assertNotNull(
        "The immutable non annotated POJO should not be null!", pojo);

    Assert.assertNotNull("The date created cannot be null!",
        pojo.getDateCreated());

    Assert.assertTrue("The int field cannot be zero!",
        pojo.getIntField() != 0);

    long[] longArray = pojo.getLongArray();
    Assert.assertNotNull("The array of longs cannot be null!", longArray);
    Assert.assertEquals("The array of longs must have 1 element!",
        strategy.getNumberOfCollectionElements(Long.class),
        longArray.length);
View Full Code Here

TOP

Related Classes of uk.co.jemos.podam.test.dto.ImmutableNonAnnotatedPojo

Copyright © 2018 www.massapicom. 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.