Search in sources :

Example 1 with B

use of uk.co.jemos.podam.test.dto.pdm42.B in project podam by devopsfolks.

the class InheritanceTest method podamShouldManufactureAllPojosInATreeHierarchy.

@Test
@Title("Podam should manufacture all POJOs in a tree hierarchy")
public void podamShouldManufactureAllPojosInATreeHierarchy() throws Exception {
    PodamFactory podamFactory = podamFactorySteps.givenAStandardPodamFactory();
    A pojo = podamInvocationSteps.whenIInvokeTheFactoryForClass(A.class, podamFactory);
    podamValidationSteps.theObjectShouldNotBeNull(pojo);
    B b = pojo.getB();
    podamValidationSteps.theObjectShouldNotBeNull(b);
    podamValidationSteps.theObjectShouldNotBeNull(b.getCustomValue());
}
Also used : A(uk.co.jemos.podam.test.dto.pdm42.A) B(uk.co.jemos.podam.test.dto.pdm42.B) PodamFactory(uk.co.jemos.podam.api.PodamFactory) 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 A (uk.co.jemos.podam.test.dto.pdm42.A)1 B (uk.co.jemos.podam.test.dto.pdm42.B)1