Search in sources :

Example 1 with ReadOnlyAbstract

use of uk.co.jemos.podam.test.dto.ReadOnlyAbstract in project podam by devopsfolks.

the class ReadOnlyComplexTypesTest method podamShouldCreateAnInstanceOfAnAbstractClassWithAFactoryMethodWhichReturnsAConcreteType.

@Test
@Title("Podam should create an instance of an Abstract class with a factory method which returns a concrete type" + " even if the concrete type has got read-only attributes. These will be empty.")
public void podamShouldCreateAnInstanceOfAnAbstractClassWithAFactoryMethodWhichReturnsAConcreteType() throws Exception {
    PodamFactory podamFactory = podamFactorySteps.givenAStandardPodamFactory();
    ReadOnlyAbstract pojo = podamInvocationSteps.whenIInvokeTheFactoryForClass(ReadOnlyAbstract.class, podamFactory);
    podamValidationSteps.thePojoMustBeOfTheType(pojo, ReadOnlyAbstract.class);
}
Also used : ReadOnlyAbstract(uk.co.jemos.podam.test.dto.ReadOnlyAbstract) PodamFactory(uk.co.jemos.podam.api.PodamFactory) Test(org.junit.Test) Title(net.thucydides.core.annotations.Title)

Aggregations

Title (net.thucydides.core.annotations.Title)1 Test (org.junit.Test)1 PodamFactory (uk.co.jemos.podam.api.PodamFactory)1 ReadOnlyAbstract (uk.co.jemos.podam.test.dto.ReadOnlyAbstract)1