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");
}
Aggregations