Search in sources :

Example 1 with RecursiveMap

use of uk.co.jemos.podam.test.dto.pdm6.RecursiveMap in project podam by devopsfolks.

the class PodamFactoryBasicTypesTest method podamShouldSupportRecursiveMaps.

@Test
@Title("Podam should fill in Maps of the containing class type")
public void podamShouldSupportRecursiveMaps() throws Exception {
    PodamFactory podamFactory = podamFactorySteps.givenAStandardPodamFactory();
    RecursiveMap recursiveMap = podamInvocationSteps.whenIInvokeTheFactoryForClass(RecursiveMap.class, podamFactory);
    podamValidationSteps.thePojoMustBeOfTheType(recursiveMap, RecursiveMap.class);
    podamValidationSteps.theMapShouldNotBeNullOrEmptyAndContainElementsOfType(recursiveMap.getMap(), String.class, RecursiveMap.class);
}
Also used : PodamFactory(uk.co.jemos.podam.api.PodamFactory) RecursiveMap(uk.co.jemos.podam.test.dto.pdm6.RecursiveMap) 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 RecursiveMap (uk.co.jemos.podam.test.dto.pdm6.RecursiveMap)1