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

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


  @Test
  public void testMockerForAbstractClass() {
    // Trying to create an abstract class should thrown an instantiation
    // exception
    AbstractTestPojo pojo = factory.manufacturePojo(AbstractTestPojo.class);
    Assert.assertNull("The abstract pojo should be null!", pojo);
  }
View Full Code Here


  @Test
  public void testMockerForAbstractClassWithConcreteSpecified() {
    // Trying to create an abstract class with a specified concrete
    // implementation should be fine
    strategy.addSpecific(AbstractTestPojo.class, ConcreteTestPojo.class);
    AbstractTestPojo pojo = factory.manufacturePojo(AbstractTestPojo.class);
    Assert.assertNotNull(
        "The abstract pojo should not be null since a concrete impl has been specified",
        pojo);
    strategy.removeSpecific(AbstractTestPojo.class);
  }
View Full Code Here

TOP

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

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.