use of org.whole.lang.xml.model.CDataSect in project whole by wholeplatform.
the class NormalizerOperationTest method testXmlBehavior.
@Test
public void testXmlBehavior() {
assertTrue(ReflectionFactory.getLanguageKit(XmlLanguageKit.URI).hasVisitor(NormalizerOperation.ID));
XmlEntityFactory ef = XmlEntityFactory.instance;
CDataSect data = ef.createCDataSect(ef.createCDataSectData("one"), ef.createCDataSectData("two"), ef.createCDataSectData("three"));
CDataSect dataOrig = EntityUtils.clone(data);
NormalizerOperation.normalize(data);
assertFalse(Matcher.match(dataOrig, data));
CDataSect dataOrig2 = EntityUtils.clone(data);
NormalizerOperation.normalize(data);
assertTrue(Matcher.match(dataOrig2, data));
}
Aggregations