use of org.eclipse.vorto.core.api.model.mapping.MappingRule in project vorto by eclipse.
the class LWM2MMappingParseTest method parseEntityMapping.
@Test
public void parseEntityMapping() throws IOException {
MappingModel mappingModel = this.createMappingModel("LWM2MResourceEntity.mapping");
EList<MappingRule> rules = mappingModel.getRules();
assertEquals(4, rules.size());
}
use of org.eclipse.vorto.core.api.model.mapping.MappingRule in project vorto by eclipse.
the class MappingModelSyntaxTest method parseMappingWithEntityReference.
@Test
public void parseMappingWithEntityReference() throws IOException {
MappingModel mappingModel = createMappingModel("type/Entity_Ref.mapping");
EList<MappingRule> rules = mappingModel.getRules();
assertEquals(1, rules.size());
}
use of org.eclipse.vorto.core.api.model.mapping.MappingRule in project vorto by eclipse.
the class MappingModelSyntaxTest method parseMappingWithEnumAttribute.
@Test
public void parseMappingWithEnumAttribute() throws IOException {
MappingModel mappingModel = createMappingModel("type/Enum_Attribute.mapping");
EList<MappingRule> rules = mappingModel.getRules();
assertEquals(3, rules.size());
}
use of org.eclipse.vorto.core.api.model.mapping.MappingRule in project vorto by eclipse.
the class MappingModelSyntaxTest method parseMappingWithEntityProperty.
@Test
public void parseMappingWithEntityProperty() throws IOException {
MappingModel mappingModel = createMappingModel("type/Entity_Property.mapping");
EList<MappingRule> rules = mappingModel.getRules();
assertEquals(1, rules.size());
}
use of org.eclipse.vorto.core.api.model.mapping.MappingRule in project vorto by eclipse.
the class MappingModelSyntaxTest method parseMappingWithInfoModelAttribute.
@Test
public void parseMappingWithInfoModelAttribute() throws IOException {
MappingModel mappingModel = createMappingModel("Infomodel_Attribute.mapping");
EList<MappingRule> rules = mappingModel.getRules();
assertEquals(6, rules.size());
}
Aggregations