org.apache.axiom.ts.om.builder
Class TestIOExceptionInGetText

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
                  extended by org.apache.axiom.ts.om.builder.TestIOExceptionInGetText
All Implemented Interfaces:
junit.framework.Test

public class TestIOExceptionInGetText
extends AxiomTestCase

Test the behavior of the builder when an exception is thrown by XMLStreamReader.getText(). The test is only effective if the StAX implementation lazily loads the character data for a XMLStreamConstants.CHARACTERS event. This is the case for Woodstox. It checks that after the exception is thrown by the parser, the builder no longer attempts to access the parser.


Field Summary
 
Fields inherited from class org.apache.axiom.ts.AxiomTestCase
metaFactory, TEST_PARSER_CONFIGURATION
 
Constructor Summary
TestIOExceptionInGetText(OMMetaFactory metaFactory)
           
 
Method Summary
protected  void runTest()
           
 
Methods inherited from class org.apache.axiom.ts.AxiomTestCase
assertConsumed, getChildrenCount, getNumberOfOccurrences
 
Methods inherited from class org.apache.axiom.testutils.suite.TestCaseEx
addTestProperty, getTestProperties
 
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
 

Constructor Detail

TestIOExceptionInGetText

public TestIOExceptionInGetText(OMMetaFactory metaFactory)
Method Detail

runTest

protected void runTest()
                throws Throwable
Specified by:
runTest in class org.apache.axiom.testutils.suite.TestCaseEx
Throws:
Throwable


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