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);
}
Aggregations