Search in sources :

Example 1 with TestEntities

use of org.whole.lang.models.codebase.TestEntities 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));
}
Also used : TestEntities(org.whole.lang.models.codebase.TestEntities) IEntity(org.whole.lang.model.IEntity) WholeLanguage(org.whole.lang.misc.codebase.WholeLanguage) ModelsModel(org.whole.lang.models.codebase.ModelsModel) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 WholeLanguage (org.whole.lang.misc.codebase.WholeLanguage)1 IEntity (org.whole.lang.model.IEntity)1 ModelsModel (org.whole.lang.models.codebase.ModelsModel)1 TestEntities (org.whole.lang.models.codebase.TestEntities)1