use of uk.co.jemos.podam.test.dto.pdm33.PrivateOnlyConstructorPojo in project podam by devopsfolks.
the class AbnormalPojosTest method podamShouldHandlePojosWithPrivateOnlyConstructors.
@Test
@Title("Podam should handle POJOs with private constructors only")
public void podamShouldHandlePojosWithPrivateOnlyConstructors() throws Exception {
PodamFactory podamFactory = podamFactorySteps.givenAStandardPodamFactory();
PrivateOnlyConstructorPojo pojo = podamInvocationSteps.whenIInvokeTheFactoryForClass(PrivateOnlyConstructorPojo.class, podamFactory);
podamValidationSteps.theObjectShouldNotBeNull(pojo);
podamValidationSteps.theStringFieldCannotBeNullOrEmpty(pojo.getFirstName());
podamValidationSteps.theIntFieldShouldNotBeZero(pojo.getIntField());
}
Aggregations