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

Examples of uk.co.jemos.podam.test.dto.pdm33.PrivateOnlyConstructorPojo


  }

  @Test
  public void testNoDefaultPublicConstructorPojo() {

    NoDefaultPublicConstructorPojo pojo = factory
        .manufacturePojo(NoDefaultPublicConstructorPojo.class);
    Assert.assertNotNull("The pojo cannot be null!", pojo);
    Assert.assertNotNull("The string field cannot be null!",
        pojo.getFirstName());
    Assert.assertTrue("The int field cannot be zero!",
        pojo.getIntField() != 0);

  }
View Full Code Here


  }

  @Test
  public void testPrivateOnlyConstructorPojo() {

    PrivateOnlyConstructorPojo pojo = factory
        .manufacturePojo(PrivateOnlyConstructorPojo.class);
    Assert.assertNotNull("The pojo cannot be null!", pojo);
    Assert.assertNotNull("The string attribute in pojo cannot be null!",
        pojo.getFirstName());
    Assert.assertTrue("The int field in pojo cannot be zero!",
        pojo.getIntField() != 0);

  }
View Full Code Here

  }

  @Test
  public void testProtectedNonDefaultConstructorPojo() {
    ProtectedNonDefaultConstructorPojo pojo = factory
        .manufacturePojo(ProtectedNonDefaultConstructorPojo.class);
    Assert.assertNotNull("The pojo cannot be null!", pojo);
    Assert.assertNotNull("The string attribute cannot be null!",
        pojo.getFirstName());
    Assert.assertTrue("The int field cannot be zero!",
        pojo.getIntField() != 0);
  }
View Full Code Here

TOP

Related Classes of uk.co.jemos.podam.test.dto.pdm33.PrivateOnlyConstructorPojo

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.