use of uk.co.jemos.podam.test.dto.ExcludeAnnotationPojo in project podam by devopsfolks.
the class AnnotationsTest method podamShouldNotFillFieldsAnnotatedWithExcludeAnnotation.
@Test
@Title("Podam should not fill POJO's attributes annotated with @PodamExclude")
public void podamShouldNotFillFieldsAnnotatedWithExcludeAnnotation() throws Exception {
PodamFactory podamFactory = podamFactorySteps.givenAStandardPodamFactory();
ExcludeAnnotationPojo pojo = podamInvocationSteps.whenIInvokeTheFactoryForClass(ExcludeAnnotationPojo.class, podamFactory);
podamValidationSteps.theObjectShouldNotBeNull(pojo);
podamValidationSteps.theIntFieldShouldNotBeZero(pojo.getIntField());
podamValidationSteps.anyFieldWithPodamExcludeAnnotationShouldBeNull(pojo.getSomePojo());
}
Aggregations