use of org.eclipse.xtext.linking.lazy.bug311337.Model in project xtext-core by eclipse.
the class Bug299395Test method testSerialization_04.
@Test
public void testSerialization_04() {
Model model = Bug299395Factory.eINSTANCE.createModel();
model.getKeys().add("Key1");
model.getValues().add("Value1");
model.getKeys().add("Key2");
model.getValues().add("Value2");
String serialized = getSerializer().serialize(model);
assertEquals("[ \"Key1\" \"Value1\" \"Key2\" \"Value2\" ]", serialized);
}
use of org.eclipse.xtext.linking.lazy.bug311337.Model in project xtext-core by eclipse.
the class Bug299395Test method testSerialization_08.
@Test
public void testSerialization_08() {
Model model = Bug299395Factory.eINSTANCE.createModel();
SubModel subModel = Bug299395Factory.eINSTANCE.createSubModel();
model.setSubModel(subModel);
subModel.getStrings().add("s1");
subModel.getStrings().add("s2");
String serialized = getSerializer().serialize(model);
assertEquals("subModel 1 2 \"s1\" 1 2 \"s2\"", serialized);
}
Aggregations