use of uk.co.jemos.podam.test.dto.ReadOnlyGenericComplexTypesPojo in project podam by devopsfolks.
the class ReadOnlyComplexTypesTest method podamShouldFillReadOnlyComplexTypes.
@Test
@Title("Podam should fill in complex (e.g. with more than two generic types), read-only POJOs")
public void podamShouldFillReadOnlyComplexTypes() throws Exception {
PodamFactory podamFactory = podamFactorySteps.givenAStandardPodamFactory();
ReadOnlyGenericComplexTypesPojo<?, ?, ?> pojo = podamInvocationSteps.whenIInvokeTheFactoryForGenericTypeWithSpecificType(ReadOnlyGenericComplexTypesPojo.class, podamFactory, Character.class, Long.class, Integer.class);
podamValidationSteps.thePojoMustBeOfTheType(pojo, ReadOnlyGenericComplexTypesPojo.class);
podamValidationSteps.theCollectionShouldNotBeNullOrEmptyAndContainElementsOfType(pojo.getList(), Long.class);
podamValidationSteps.theMapShouldNotBeNullOrEmptyAndContainElementsOfType(pojo.getMap(), Integer.class, String.class);
podamValidationSteps.thePojoMustBeOfTheType(pojo.getValue(), ReadOnlyGenericComplexTypesPojo.Value.class);
podamValidationSteps.thePojoMustBeOfTheType(pojo.getValue().getValue(), Character.class);
}
Aggregations