use of io.atlasmap.v2.PropertyField in project atlasmap by atlasmap.
the class DefaultAtlasPropertyStrategyTest method testProcessPropertyFieldJavaSystem.
@Test
public void testProcessPropertyFieldJavaSystem() throws Exception {
PropertyField propField = AtlasModelFactory.createPropertyField();
propField.setName("java.specification.version");
propStrategy.processPropertyField(AtlasTestData.generateAtlasMapping(), propField, AtlasTestData.generateRuntimeProperties());
assertNotNull(propField);
assertNotNull(propField.getValue());
assertTrue(propField.getValue() instanceof String);
assertEquals("1.8", propField.getValue());
}
use of io.atlasmap.v2.PropertyField in project atlasmap by atlasmap.
the class BaseMarshallerTest method generatePropertyReferenceMapping.
protected AtlasMapping generatePropertyReferenceMapping() {
AtlasMapping mapping = generateAtlasMapping();
PropertyField inputField = new PropertyField();
inputField.setName("foo");
Mapping fm = (Mapping) mapping.getMappings().getMapping().get(0);
fm.getInputField().add(inputField);
Property p = new Property();
p.setName("foo");
p.setValue("bar");
mapping.setProperties(new Properties());
mapping.getProperties().getProperty().add(p);
return mapping;
}
Aggregations