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

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


  }

  @Test
  public void testSingletonWithParametersInPublicStaticMethod() {

    SingletonWithParametersInStaticFactoryPojo pojo = factory
        .manufacturePojo(SingletonWithParametersInStaticFactoryPojo.class);
    Assert.assertNotNull("The pojo cannot be null!", pojo);

    Assert.assertNotNull("The calendar object cannot be null!",
        pojo.getCreateDate());

    Assert.assertNotNull("The first name cannot be null!",
        pojo.getFirstName());

    List<OneDimensionalTestPojo> pojoList = pojo.getPojoList();
    Assert.assertNotNull("The pojo list cannot be null!", pojoList);
    Assert.assertFalse("The pojo list cannot be empty", pojoList.isEmpty());

    Map<String, OneDimensionalTestPojo> pojoMap = pojo.getPojoMap();
    Assert.assertNotNull("The pojo map cannot be null!", pojoMap);
    Assert.assertFalse("The pojo map cannot be empty!", pojoMap.isEmpty());

  }
View Full Code Here

TOP

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

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.