use of uk.co.jemos.podam.test.enums.ExternalRatePodamEnum in project podam by devopsfolks.
the class PodamFactoryBasicTypesTest method podamShouldFillPojoWithEnums.
@Test
@Title("Podam should fill in POJOs with Enums")
public void podamShouldFillPojoWithEnums() throws Exception {
PodamFactory podamFactory = podamFactorySteps.givenAStandardPodamFactory();
EnumsPojo pojo = podamInvocationSteps.whenIInvokeTheFactoryForClass(EnumsPojo.class, podamFactory);
podamValidationSteps.thePojoMustBeOfTheType(pojo, EnumsPojo.class);
ExternalRatePodamEnum ratePodamExternal = pojo.getRatePodamExternal();
podamValidationSteps.thePojoMustBeOfTheType(ratePodamExternal, ExternalRatePodamEnum.class);
EnumsPojo.RatePodamInternal ratePodamInternal = pojo.getRatePodamInternal();
podamValidationSteps.thePojoMustBeOfTheType(ratePodamInternal, EnumsPojo.RatePodamInternal.class);
EnumsPojo.EmptyPodamInternal emptyPodamInternal = pojo.getEmptyPodamInternal();
podamValidationSteps.thePojoShouldBeNull(emptyPodamInternal);
}
Aggregations