Search in sources :

Example 1 with PojoSpecific

use of uk.co.jemos.podam.test.dto.annotations.PojoSpecific in project podam by devopsfolks.

the class ExtensionsTest method podamShouldFillTheAttributeMetadataWithTheAttributeNames.

@Test
@Title("Podam should fill AttributeMetadata with the attribute name")
public void podamShouldFillTheAttributeMetadataWithTheAttributeNames() throws Exception {
    PodamFactory podamFactory = podamFactorySteps.givenAPodamWithACustomStringTypeManufacturer();
    PojoClassic pojoClassic = podamInvocationSteps.whenIInvokeTheFactoryForClass(PojoClassic.class, podamFactory);
    podamValidationSteps.theObjectShouldNotBeNull(pojoClassic);
    PojoSpecific pojoSpecific = podamInvocationSteps.whenIInvokeTheFactoryForClass(PojoSpecific.class, podamFactory);
    podamValidationSteps.theObjectShouldNotBeNull(pojoSpecific);
    podamValidationSteps.theStringValueShouldBeExactly(pojoClassic.getAtt(), "classic");
    podamValidationSteps.theStringValueShouldBeExactly(pojoSpecific.getAtt(), "specific");
}
Also used : PodamFactory(uk.co.jemos.podam.api.PodamFactory) PojoClassic(uk.co.jemos.podam.test.dto.annotations.PojoClassic) PojoSpecific(uk.co.jemos.podam.test.dto.annotations.PojoSpecific) 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 PojoClassic (uk.co.jemos.podam.test.dto.annotations.PojoClassic)1 PojoSpecific (uk.co.jemos.podam.test.dto.annotations.PojoSpecific)1