use of org.eclipse.vorto.core.api.model.mapping.MappingModel in project vorto by eclipse.
the class LWM2MMappingParseTest method parseEnumMapping.
@Test
public void parseEnumMapping() throws IOException {
MappingModel mappingModel = this.createMappingModel("LWM2MResourceEnum.mapping");
EList<MappingRule> rules = mappingModel.getRules();
assertEquals(4, rules.size());
}
use of org.eclipse.vorto.core.api.model.mapping.MappingModel in project vorto by eclipse.
the class LWM2MMappingParseTest method parseInformationModelMapping.
@Test
public void parseInformationModelMapping() throws IOException {
MappingModel mappingModel = createMappingModel("LWM2MObjectType.mapping");
EList<MappingRule> rules = mappingModel.getRules();
assertEquals(1, rules.size());
}
use of org.eclipse.vorto.core.api.model.mapping.MappingModel in project vorto by eclipse.
the class MappingModelSyntaxTest method parseMappingWithFunctionBlockProperty.
@Test
public void parseMappingWithFunctionBlockProperty() throws IOException {
MappingModel mappingModel = createMappingModel("fb/FunctionBlock_Property.mapping");
EList<MappingRule> rules = mappingModel.getRules();
assertEquals(6, rules.size());
}
use of org.eclipse.vorto.core.api.model.mapping.MappingModel in project vorto by eclipse.
the class MappingModelSyntaxTest method parseMappingWithFunctionBlockReference.
@Test
public void parseMappingWithFunctionBlockReference() throws IOException {
MappingModel mappingModel = createMappingModel("fb/FunctionBlock_Ref.mapping");
EList<MappingRule> rules = mappingModel.getRules();
assertEquals(2, rules.size());
}
use of org.eclipse.vorto.core.api.model.mapping.MappingModel in project vorto by eclipse.
the class MappingModelSyntaxTest method parseMappingWithEntityAttribute.
@Test
public void parseMappingWithEntityAttribute() throws IOException {
MappingModel mappingModel = createMappingModel("type/Entity_Attribute.mapping");
EList<MappingRule> rules = mappingModel.getRules();
assertEquals(3, rules.size());
}
Aggregations