Search in sources :

Example 1 with PodamFactoryImpl

use of uk.co.jemos.podam.api.PodamFactoryImpl in project podam by devopsfolks.

the class Issue93UnitTest method testLoop.

@Test
public void testLoop() {
    A a = new PodamFactoryImpl().manufacturePojo(A.class);
    Assert.assertNotNull("The Pojo for class A should not be null", a);
}
Also used : PodamFactoryImpl(uk.co.jemos.podam.api.PodamFactoryImpl) Test(org.junit.Test)

Example 2 with PodamFactoryImpl

use of uk.co.jemos.podam.api.PodamFactoryImpl in project podam by devopsfolks.

the class Pdm43UnitTest method validateDtoInstantiation.

@Test
public void validateDtoInstantiation() {
    PodamFactory podamFactory = new PodamFactoryImpl();
    ConcreteBusinessObject pojo = podamFactory.manufacturePojo(ConcreteBusinessObject.class);
    Assert.assertNotNull("The created POJO cannot be null!", pojo);
}
Also used : PodamFactoryImpl(uk.co.jemos.podam.api.PodamFactoryImpl) ConcreteBusinessObject(uk.co.jemos.podam.test.dto.pdm43.ConcreteBusinessObject) PodamFactory(uk.co.jemos.podam.api.PodamFactory) Test(org.junit.Test)

Example 3 with PodamFactoryImpl

use of uk.co.jemos.podam.api.PodamFactoryImpl in project podam by devopsfolks.

the class InvisibleConstructorAndNoSettersTest method testInvisibleConstructorAndNoSetters.

@Test
public void testInvisibleConstructorAndNoSetters() {
    PodamFactory factory = new PodamFactoryImpl();
    InvisibleConstructorAndNoSettersPojo pojo = factory.manufacturePojo(InvisibleConstructorAndNoSettersPojo.class);
    assertNotNull(pojo);
}
Also used : PodamFactoryImpl(uk.co.jemos.podam.api.PodamFactoryImpl) PodamFactory(uk.co.jemos.podam.api.PodamFactory) InvisibleConstructorAndNoSettersPojo(uk.co.jemos.podam.test.dto.pdm5.InvisibleConstructorAndNoSettersPojo) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)3 PodamFactoryImpl (uk.co.jemos.podam.api.PodamFactoryImpl)3 PodamFactory (uk.co.jemos.podam.api.PodamFactory)2 ConcreteBusinessObject (uk.co.jemos.podam.test.dto.pdm43.ConcreteBusinessObject)1 InvisibleConstructorAndNoSettersPojo (uk.co.jemos.podam.test.dto.pdm5.InvisibleConstructorAndNoSettersPojo)1