Search in sources :

Example 1 with ExcludeAnnotationPojo

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());
}
Also used : ExcludeAnnotationPojo(uk.co.jemos.podam.test.dto.ExcludeAnnotationPojo) 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 ExcludeAnnotationPojo (uk.co.jemos.podam.test.dto.ExcludeAnnotationPojo)1