public class AttributeMetaDataTest {
@Test
public void testAttributeMetaData() {
PodamFactory factory = new PodamFactoryImpl(new AbstractRandomDataProviderStrategy() {
@Override
public String getStringValue(AttributeMetadata attributeMetadata) {
if (attributeMetadata.getPojoClass() == PojoSpecific.class) {
return "specific";
} else {
return "classic";
}
}
});
Assert.assertEquals(factory.manufacturePojo(PojoClassic.class).getAtt(), "classic");
Assert.assertEquals(factory.manufacturePojo(PojoSpecific.class).getAtt(), "specific");
}