testing/axiom-testsuite/src/main/java/org/apache/axiom/ts/om/element/TestGetChildElementsConsumed.java [40:62]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        super(metaFactory);
    }

    @Override
    protected void runTest() throws Throwable {
        OMXMLParserWrapper builder =
                OMXMLBuilderFactory.createOMBuilder(
                        metaFactory.getOMFactory(),
                        TestGetChildElementsConsumed.class.getResourceAsStream(
                                "purchase-order.xml"));

        OMElement documentElement = builder.getDocumentElement();
        XMLStreamReader reader = documentElement.getXMLStreamReaderWithoutCaching();

        // consume the parser. this should force the xml stream to be exhausted without
        // building the tree
        while (reader.hasNext()) {
            reader.next();
        }

        // try to find the children of the document element. This should produce an
        // error since the underlying stream is fully consumed without building the object tree
        try {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



testing/axiom-testsuite/src/main/java/org/apache/axiom/ts/om/element/TestSerializeAndConsumeConsumed.java [42:65]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        super(metaFactory);
    }

    @Override
    protected void runTest() throws Throwable {
        OMXMLParserWrapper builder =
                OMXMLBuilderFactory.createOMBuilder(
                        metaFactory.getOMFactory(),
                        TestGetChildElementsConsumed.class.getResourceAsStream(
                                "purchase-order.xml"));

        OMElement documentElement = builder.getDocumentElement();

        XMLStreamReader reader = documentElement.getXMLStreamReaderWithoutCaching();

        // consume the parser. this should force the xml stream to be exhausted without
        // building the tree
        while (reader.hasNext()) {
            reader.next();
        }

        // try to find the children of the document element. This should produce an
        // error since the underlying stream is fully consumed without building the object tree
        try {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



