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

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


  }

  @Test
  public void testPojoWithNoSettersAndCollectionInConstructor() {

    NoSetterWithCollectionInConstructorPojo pojo = factory
        .manufacturePojo(NoSetterWithCollectionInConstructorPojo.class);
    Assert.assertNotNull("The POJO cannot be null!", pojo);
    List<String> strList = pojo.getStrList();
    Assert.assertNotNull(
        "The collection of Strings in the constructor cannot be null!",
        strList);
    Assert.assertFalse(
        "The collection of Strings in the constructor cannot be empty!",
        strList.isEmpty());
    String strElement = strList.get(0);
    Assert.assertNotNull("The collection element cannot be null!",
        strElement);

    int intField = pojo.getIntField();
    Assert.assertTrue(
        "The int field in the constructor must be different from zero",
        intField != 0);

  }
View Full Code Here

TOP

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

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.