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

Examples of uk.co.jemos.podam.test.dto.annotations.BooleanValuePojo


  }

  @Test
  public void testBooleanValueAnnotation() {

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

    boolean boolDefaultToTrue = pojo.isBoolDefaultToTrue();
    Assert.assertTrue(
        "The boolean attribute forced to true should be true!",
        boolDefaultToTrue);

    boolean boolDefaultToFalse = pojo.isBoolDefaultToFalse();
    Assert.assertFalse(
        "The boolean attribute forced to false should be false!",
        boolDefaultToFalse);

    Boolean boolObjectDefaultToFalse = pojo.getBoolObjectDefaultToFalse();
    Assert.assertNotNull(
        "The boolean object forced to false should not be null!",
        boolObjectDefaultToFalse);
    Assert.assertFalse(
        "The boolean object forced to false should have a value of false!",
        boolObjectDefaultToFalse);

    Boolean boolObjectDefaultToTrue = pojo.getBoolObjectDefaultToTrue();
    Assert.assertNotNull(
        "The boolean object forced to true should not be null!",
        boolObjectDefaultToTrue);
    Assert.assertTrue(
        "The boolean object forced to true should have a value of true!",
View Full Code Here

TOP

Related Classes of uk.co.jemos.podam.test.dto.annotations.BooleanValuePojo

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.