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

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


  }

  @Test
  public void recursiveObjectsAreSame() throws Exception {
    strategy.setMemoizationEnabled(true);
    RecursivePojo pojo = factory.manufacturePojo(RecursivePojo.class);
    Assert.assertTrue(pojo == pojo.getParent());
  }
View Full Code Here


  }

  @Test
  public void testRecursiveHierarchyPojo() {

    RecursivePojo pojo = factory.manufacturePojo(RecursivePojo.class);
    Assert.assertNotNull("The recursive pojo cannot be null!", pojo);
    Assert.assertTrue("The integer value in the pojo should not be zero!",
        pojo.getIntField() != 0);

    RecursivePojo parentPojo = pojo.getParent();
    Assert.assertNotNull("The parent pojo cannot be null!", parentPojo);
    Assert.assertTrue(
        "The integer value in the parent pojo should not be zero!",
        parentPojo.getIntField() != 0);
    Assert.assertNotNull(
        "The parent attribute of the parent pojo cannot be null!",
        parentPojo.getParent());

  }
View Full Code Here

TOP

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

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.