use of org.whole.lang.misc.codebase.WholeLanguage in project whole by wholeplatform.
the class PersistenceTest method testMultipleBuilders2Xml.
@Test
public void testMultipleBuilders2Xml() {
ModelBuilderOperation op = new ModelBuilderOperation();
XmlStoreProducerBuilderOperation xmlOp = new XmlStoreProducerBuilderOperation(op);
((XmlStoreProducerBuilder) xmlOp.wGetBuilder()).buildStartDocument();
new WholeLanguage().apply(xmlOp);
((XmlStoreProducerBuilder) xmlOp.wGetBuilder()).buildEndDocument();
IEntity xmlModel = op.wGetResult();
PrettyPrinterOperation.prettyPrint(xmlModel);
}
use of org.whole.lang.misc.codebase.WholeLanguage in project whole by wholeplatform.
the class PersistenceTest method testXMLPersistence.
@Test
public void testXMLPersistence() {
IEntity model1 = new TestEntities().create();
IEntity model2 = xmlRoundtrip(model1);
assertTrue(Matcher.match(model1, model2));
model1 = new ModelsModel().create();
model2 = xmlRoundtrip(model1);
assertTrue(Matcher.match(model1, model2));
model1 = new WholeLanguage().create();
model2 = xmlRoundtrip(model1);
assertTrue(Matcher.match(model1, model2));
}
Aggregations