org.apache.axiom.ts
Class AxiomTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.axiom.testutils.suite.TestCaseEx
              extended by org.apache.axiom.ts.AxiomTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
BadInputTest, ConformanceTestCase, CreateOMElementTestCase, DigestTestCase, LazyNameTestCase, MessageTest, OMSourcedElementTest, SOAPTestCase, TestAddAttributeAlreadyOwnedByElement, TestAddAttributeAlreadyOwnedByOtherElement, TestAddAttributeFromOMAttributeMultiple, TestAddAttributeFromOMAttributeWithExistingName, TestAddAttributeReplace, TestAddAttributeReplace1, TestAddAttributeReplace2, TestAddAttributeWithExistingNamespaceDeclarationInScope, TestAddAttributeWithExistingNamespaceDeclarationOnSameElement, TestAddAttributeWithInvalidNamespace, TestAddAttributeWithMaskedNamespaceDeclaration, TestAddAttributeWithoutExistingNamespaceDeclaration, TestAddAttributeWithoutNamespace, TestAddChild, TestAddChild2, TestAddChildFromForeignDocument, TestAddChildIncomplete, TestAddChildIncomplete, TestAddChildWithParent, TestAddChildWithSameParent, TestAddElementAfterBody, TestAddElementAfterBody, TestAddNamespaces, TestAddNamespaces2, TestAppendChildIncomplete, TestAXIOMXPath, TestBase64StreamingWithGetSAXSource, TestBase64StreamingWithSerialize, TestBuilder, TestBuilder, TestBuildWithAttachments, TestByteArrayDS, TestCharArrayDS, TestChildReDeclaringGrandParentsDefaultNSWithPrefix, TestChildReDeclaringParentsDefaultNSWithPrefix, TestCloneNodeIncomplete, TestCloneNonDestructive, TestCloneOMElement, TestCloneOMElement, TestCloneOMElementNamespaceRepairing, TestCloneUnknownName, TestCloseWithInputStream, TestCloseWithReader, TestCloseWithXMLStreamReader, TestCreateOMAttribute, TestCreateOMAttributeGeneratedPrefix, TestCreateOMAttributeNullPrefixNoNamespace, TestCreateOMAttributeWithInvalidNamespace, TestCreateOMBuilderFromDOMElement, TestCreateOMCommentWithoutParent, TestCreateOMDocTypeWithoutParent, TestCreateOMDocument, TestCreateOMElementWithNullOMDataSource1, TestCreateOMElementWithNullOMDataSource2, TestCreateOMElementWithNullURIAndPrefix, TestCreateOMEntityReference, TestCreateOMEntityReferenceWithNullParent, TestCreateOMNamespace, TestCreateOMNamespaceWithNullURI, TestCreateOMProcessingInstructionWithoutParent, TestCreateOMText, TestCreateOMTextCDATASection, TestCreateOMTextCDATASectionWithParent, TestCreateOMTextFromDataHandlerProvider, TestCreateOMTextFromOMText, TestCreateOMTextWithNullParent, TestCreateStAXOMBuilderFromFragment, TestCreateStAXOMBuilderIncorrectState, TestCreateStAXOMBuilderNamespaceRepairing, TestCreateStAXOMBuilderNamespaceRepairing2, TestDeclareDefaultNamespace1, TestDeclareDefaultNamespace2, TestDeclareDefaultNamespaceConflict1, TestDeclareDefaultNamespaceConflict2, TestDeclareNamespace1, TestDeclareNamespaceInvalid1, TestDeclareNamespaceInvalid2, TestDeclareNamespaceWithGeneratedPrefix1, TestDeclareNamespaceWithGeneratedPrefix2, TestDeclareNamespaceWithGeneratedPrefix3, TestDetach, TestDetach, TestDetachAfterBuilderClose, TestDetachFirstChild, TestDiscardDocumentElement, TestDiscardIncomplete, TestDiscardPartiallyBuilt, TestEquals, TestEqualsHashCode, TestEqualsWithNullPrefix, TestFactoryIsSingleton, TestFindNamespaceByNamespaceURIMasked, TestFindNamespaceByPrefix, TestFindNamespaceCaseSensitivity, TestFindNamespaceURIWithPrefixUndeclaring, TestGetAllAttributes1, TestGetAllAttributes2, TestGetAllDeclaredNamespaces, TestGetAllDeclaredNamespacesRemove, TestGetAttributeQName, TestGetAttributeValueNonExisting, TestGetAttributeValueWithXmlPrefix1, TestGetAttributeValueWithXmlPrefix2, TestGetAttributeWithXmlPrefix1, TestGetAttributeWithXmlPrefix2, TestGetChildElements, TestGetChildElementsConcurrentModification, TestGetChildren, TestGetChildrenConcurrentModification, TestGetChildrenRemove1, TestGetChildrenRemove2, TestGetChildrenRemove3, TestGetChildrenRemove4, TestGetChildrenWithLocalName, TestGetChildrenWithName, TestGetChildrenWithName2, TestGetChildrenWithName3, TestGetChildrenWithName4, TestGetChildrenWithNameNextWithoutHasNext, TestGetChildrenWithNamespaceURI, TestGetDefaultNamespace, TestGetDefaultNamespace2, TestGetDescendants, TestGetDocumentElement, TestGetDocumentElementWithDiscardDocument, TestGetDocumentElementWithIllFormedDocument, TestGetDocumentFromBuilder, TestGetFirstChildWithName, TestGetFirstChildWithNameOnIncompleteElement, TestGetFirstOMChildAfterConsume, TestGetFirstOMChildAfterDiscard, TestGetMetaFactory, TestGetNamespaceContext, TestGetNamespaceContext, TestGetNamespaceNormalized, TestGetNamespaceNormalized, TestGetNamespaceNormalized, TestGetNamespaceNormalized, TestGetNamespaceNormalized, TestGetNamespaceNormalized2, TestGetNamespaceNormalizedWithParser, TestGetNamespaceNormalizedWithSAXSource, TestGetNamespacesInScope, TestGetNamespacesInScopeWithDefaultNamespace, TestGetNamespacesInScopeWithMaskedDefaultNamespace, TestGetNamespacesInScopeWithMaskedNamespace, TestGetNamespaceURI, TestGetNamespaceURIWithNamespace, TestGetNamespaceURIWithNamespace, TestGetNamespaceURIWithoutNamespace, TestGetNamespaceURIWithoutNamespace, TestGetNextOMSiblingAfterDiscard, TestGetNextOMSiblingIncomplete, TestGetObject, TestGetOMDocumentElement, TestGetOMDocumentElementAfterDetach, TestGetOMDocumentElementWithParser, TestGetOMFactory1, TestGetOMFactory2, TestGetPrefix, TestGetPrefixWithDefaultNamespace, TestGetPrefixWithNamespace, TestGetPrefixWithNamespace, TestGetPrefixWithoutNamespace, TestGetPrefixWithoutNamespace, TestGetQNameWithNamespace, TestGetQNameWithNamespace, TestGetQNameWithoutNamespace, TestGetQNameWithoutNamespace, TestGetReaderException, TestGetText, TestGetTextAsQName, TestGetTextAsQNameEmpty, TestGetTextAsQNameNoNamespace, TestGetTextAsQNameWithExtraWhitespace, TestGetTextAsStreamWithNonDestructiveOMDataSource, TestGetTextAsStreamWithNonTextChildren, TestGetTextAsStreamWithoutCaching, TestGetTextAsStreamWithSingleTextNode, TestGetTextCharactersFromDataHandler, TestGetTextWithCDATASectionChild, TestGetTextWithMixedOMTextChildren, TestGetXMLStreamReaderCDATAEventFromElement, TestGetXMLStreamReaderCDATAEventFromParser, TestGetXMLStreamReaderCommentEvent, TestGetXMLStreamReaderGetElementText, TestGetXMLStreamReaderGetElementTextFromParser, TestGetXMLStreamReaderGetNamespaceContext, TestGetXMLStreamReaderNextTag, TestGetXMLStreamReaderOnNonRootElement, TestGetXMLStreamReaderWithNamespaceURIInterning, TestGetXMLStreamReaderWithOMSourcedElementDescendant, TestGetXMLStreamReaderWithoutCachingPartiallyBuilt, TestGetXMLStreamReaderWithPreserveNamespaceContext, TestGetXMLStreamReaderWithPushOMDataSource, TestHashCode, TestImportNode, TestInputStreamDS, TestInsertBeforeIncomplete, TestInsertSiblingAfter, TestInsertSiblingAfterFromForeignDocument, TestInsertSiblingAfterLastChild, TestInsertSiblingAfterOnChild, TestInsertSiblingAfterOnOrphan, TestInsertSiblingAfterOnSelf, TestInsertSiblingBefore, TestInsertSiblingBeforeFromForeignDocument, TestInsertSiblingBeforeOnChild, TestInsertSiblingBeforeOnOrphan, TestInsertSiblingBeforeOnSelf, TestInvalidXML, TestIOExceptionInGetText, TestIsCompleteAfterAddingIncompleteChild, TestIsCompleteAfterAddingIncompleteChild, TestMTOMForwardStreaming, TestMultipleDefaultNS, TestNextBeforeGetDocumentElement, TestObjectEquals, TestObjectEqualsWithDifferentPrefixes, TestObjectEqualsWithDifferentURIs, TestReadAttachmentBeforeRootPartComplete, TestRemoveAttribute, TestRemoveAttribute, TestRemoveAttributeNotOwner, TestRemoveAttributeNSNamespaceDeclaration, TestRemoveChildIncomplete, TestRemoveChildren, TestRemoveChildren, TestRemoveChildrenUnexpanded, TestReplaceChildFirstIncomplete, TestReplaceChildMiddleIncomplete, TestResolveQNameWithDefaultNamespace, TestResolveQNameWithNonDefaultNamespace, TestResolveQNameWithoutNamespace, TestResolveQNameWithUnboundPrefix, TestRootPartStreaming, TestSerialization, TestSerializationWithTwoNonBuiltOMElements, TestSerializeAndConsume, TestSerializeAndConsumePartiallyBuilt, TestSerializeAndConsumeWithIncompleteDescendant, TestSerializeAndConsumeWithIncompleteDescendant, TestSetDataSource, TestSetLocalName, TestSetLocalName, TestSetNamespace, TestSetNamespaceInvalid, TestSetNamespaceWithMatchingBindingInScope, TestSetNamespaceWithNullOMNamespace, TestSetNamespaceWithNullPrefix, TestSetOMDocumentElementNew, TestSetOMDocumentElementNull, TestSetOMDocumentElementReplace, TestSetText, TestSetTextEmptyString, TestSetTextNull, TestSetTextQName, TestSetTextQNameNull, TestSetTextQNameWithEmptyPrefix, TestSetTextQNameWithExistingChildren, TestSetTextQNameWithoutNamespace, TestSetTextWithExistingChildren, TestStandaloneConfiguration, TestUndeclarePrefix, TestWrappedTextNodeOMDataSourceFromReader, TestWriteAttributeNoNamespace, TestWriteCData, TestWriteComment, TestWriteDataHandler, TestWriteDataHandlerProvider, TestWriteEmptyElementAutoPrefix, TestWriteNamespace, TestWriteProcessingInstruction1, TestWriteProcessingInstruction2, TestWriteStartElementAutoPrefix, TestWriteStartElementWithDefaultNamespaceDeclaredOnParent, TestWriteTextTo, TestWriteTextToWithNonDestructiveOMDataSource, TestWriteTextToWithNonTextNodes

public abstract class AxiomTestCase
extends org.apache.axiom.testutils.suite.TestCaseEx


Field Summary
protected  OMMetaFactory metaFactory
           
static StAXParserConfiguration TEST_PARSER_CONFIGURATION
           
 
Constructor Summary
AxiomTestCase(OMMetaFactory metaFactory)
           
 
Method Summary
protected  void assertConsumed(OMContainer container)
           
protected static int getChildrenCount(Iterator childrenIter)
           
protected static int getNumberOfOccurrences(String xml, String pattern)
           
 
Methods inherited from class org.apache.axiom.testutils.suite.TestCaseEx
addTestProperty, getTestProperties, runTest
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TEST_PARSER_CONFIGURATION

public static final StAXParserConfiguration TEST_PARSER_CONFIGURATION

metaFactory

protected final OMMetaFactory metaFactory
Constructor Detail

AxiomTestCase

public AxiomTestCase(OMMetaFactory metaFactory)
Method Detail

assertConsumed

protected void assertConsumed(OMContainer container)

getChildrenCount

protected static int getChildrenCount(Iterator childrenIter)

getNumberOfOccurrences

protected static int getNumberOfOccurrences(String xml,
                                            String pattern)


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.