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

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


  }

  @Test
  public void testSimplePojo() {

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

    int intField = pojo.getIntField();
    Assert.assertTrue("The int field cannot be zero!", intField != 0);

    String stringField = pojo.getStringField();
    Assert.assertNotNull("The string field cannot be null!", stringField);
  }
View Full Code Here


  }

  @Test
  public void whenEnabledObjectsAreSame() throws Exception {
    strategy.setMemoizationEnabled(true);
    SimplePojoToTestSetters pojo1 = factory.manufacturePojo(SimplePojoToTestSetters.class);
    SimplePojoToTestSetters pojo2 = factory.manufacturePojo(SimplePojoToTestSetters.class);
    Assert.assertTrue(pojo1 == pojo2);
  }
View Full Code Here

  }

  @Test
  public void whenDisabledObjectsAreDifferent() throws Exception {
    strategy.setMemoizationEnabled(false);
    SimplePojoToTestSetters pojo1 = factory.manufacturePojo(SimplePojoToTestSetters.class);
    SimplePojoToTestSetters pojo2 = factory.manufacturePojo(SimplePojoToTestSetters.class);
    Assert.assertTrue(pojo1 != pojo2);
  }
View Full Code Here

    validateConcurrentHashMap(concurrentHashMapImpl);
    Queue<SimplePojoToTestSetters> queue = pojo.getQueue();
    Assert.assertNotNull("The queue cannot be null!", queue);
    Assert.assertTrue("The queue must be an instance of LinkedList",
        queue instanceof LinkedList);
    SimplePojoToTestSetters pojoQueueElement = queue.poll();
    Assert.assertNotNull("The queue element cannot be null!",
        pojoQueueElement);
    @SuppressWarnings("rawtypes")
    List nonGenerifiedList = pojo.getNonGenerifiedList();
    Assert.assertNotNull("The non generified list cannot be null!",
View Full Code Here

TOP

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

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.