use of uk.co.jemos.podam.test.dto.ConstructorWithSelfReferencesPojoAndDefaultConstructor in project podam by devopsfolks.
the class AnnotationsTest method podamShouldHandleConstructorsWithOneOrMoreSelfReferences.
@Test
@Title("Podam should handle POJOs with constructors that have one or more self references to the POJO class, " + "provided the required constructor is annotated with @PodamConstructor")
public void podamShouldHandleConstructorsWithOneOrMoreSelfReferences() throws Exception {
PodamFactory podamFactory = podamFactorySteps.givenAStandardPodamFactory();
ConstructorWithSelfReferencesPojoAndDefaultConstructor pojo = podamInvocationSteps.whenIInvokeTheFactoryForClass(ConstructorWithSelfReferencesPojoAndDefaultConstructor.class, podamFactory);
podamValidationSteps.theObjectShouldNotBeNull(pojo);
constructorSelfReferenceValidationSteps.theFirstSelfReferenceForPojoWithDefaultConstructorShouldNotBeNull(pojo);
constructorSelfReferenceValidationSteps.theSecondSelfReferenceForPojoWithDefaultConstructorShouldNotBeNull(pojo);
}
Aggregations