Search in sources :

Example 1 with ExternalRatePodamEnum

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);
}
Also used : PodamFactory(uk.co.jemos.podam.api.PodamFactory) ExternalRatePodamEnum(uk.co.jemos.podam.test.enums.ExternalRatePodamEnum) 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 ExternalRatePodamEnum (uk.co.jemos.podam.test.enums.ExternalRatePodamEnum)1