import org.apache.axiom.ts.om.node.TestInsertSiblingAfterOnChild;
import org.apache.axiom.ts.om.node.TestInsertSiblingBeforeOnChild;
public class OMImplementationTest extends TestCase {
public static TestSuite suite() {
OMTestSuiteBuilder builder = new OMTestSuiteBuilder(new OMDOMMetaFactory());
// OMElement#setText(QName) is unsupported
builder.exclude(TestSetTextQName.class);
// TODO: AXIOM-315
builder.exclude(org.apache.axiom.ts.om.document.TestIsCompleteAfterAddingIncompleteChild.class);
builder.exclude(org.apache.axiom.ts.om.element.TestIsCompleteAfterAddingIncompleteChild.class);
// TODO: these need to be investigated; may be related to AXIOM-315
builder.exclude(org.apache.axiom.ts.om.document.TestSerializeAndConsumeWithIncompleteDescendant.class);
builder.exclude(org.apache.axiom.ts.om.element.TestSerializeAndConsumeWithIncompleteDescendant.class);
// TODO: Axiom should throw an exception if an attempt is made to create a cyclic parent-child relationship
builder.exclude(TestInsertSiblingAfterOnChild.class);
builder.exclude(TestInsertSiblingBeforeOnChild.class);
// TODO: DOOM's behavior differs from LLOM's behavior in this case
builder.exclude(TestCreateOMElementWithGeneratedPrefix.class);
// DOOM doesn't support CDATA sections
builder.exclude(TestGetXMLStreamReaderCDATAEventFromElement.class);
// WSCOMMONS-453
builder.exclude(TestGetXMLStreamReaderWithOMSourcedElementDescendant.class);
// TODO: this case is not working because Axiom generates an XML declaration
// but uses another charset encoding to serialize the document
builder.exclude(TestSerialize.class, "(&(file=iso-8859-1.xml)(container=document))");
// TODO: this case is not working because Axiom doesn't serialize the DTD
builder.exclude(TestSerialize.class, "(&(file=spaces.xml)(container=document))");
// TODO: CDATA sections are lost when using createOMBuilder with a DOMSource
builder.exclude(TestCreateOMBuilderFromDOMSource.class, "(|(file=cdata.xml)(file=test.xml))");
// TODO: suspecting Woodstox bug here
builder.exclude(TestCreateOMBuilderFromDOMSource.class, "(file=spaces.xml)");
return builder.build();
}