Search in sources :

Example 1 with RecursiveList

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

the class PodamFactoryBasicTypesTest method podamShouldSupportRecursiveLists.

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