testing/axiom-testsuite/src/main/java/org/apache/axiom/ts/om/sourcedelement/push/WriteBlobScenario.java [67:77]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public void validate(OMElement element, boolean blobsPreserved) throws Throwable {
        OMText child = (OMText) element.getFirstOMChild();
        if (blobsPreserved) {
            Assert.assertTrue(child.isBinary());
            Assert.assertSame(blob, child.getBlob());
        } else {
            // TODO: this will only work if a single text node was created
            child.setBinary(true);
            IOTestUtils.compareStreams(blob.getInputStream(), child.getBlob().getInputStream());
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



testing/axiom-testsuite/src/main/java/org/apache/axiom/ts/om/sourcedelement/push/WriteBlobProviderScenario.java [68:77]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public void validate(OMElement element, boolean blobsPreserved) throws Throwable {
        OMText child = (OMText) element.getFirstOMChild();
        if (blobsPreserved) {
            Assert.assertTrue(child.isBinary());
            Assert.assertSame(blob, child.getBlob());
        } else {
            child.setBinary(true);
            IOTestUtils.compareStreams(blob.getInputStream(), child.getBlob().getInputStream());
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



