org.apache.commons.betwixt.recursion
Class TestRecursion

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.betwixt.xmlunit.XmlTestCase
              extended by org.apache.commons.betwixt.AbstractTestCase
                  extended by org.apache.commons.betwixt.recursion.TestRecursion
All Implemented Interfaces:
junit.framework.Test

public class TestRecursion
extends AbstractTestCase

This will test the recursive behaviour of betwixt.

Version:
$Id: TestRecursion.java 438373 2006-08-30 05:17:21Z bayard $
Author:
Martin van den Bemt

Field Summary
 
Fields inherited from class org.apache.commons.betwixt.AbstractTestCase
basedir
 
Fields inherited from class org.apache.commons.betwixt.xmlunit.XmlTestCase
debug
 
Constructor Summary
TestRecursion(java.lang.String testName)
           
 
Method Summary
protected  org.apache.commons.betwixt.XMLIntrospector createXMLIntrospector()
          Set up the XMLIntroSpector
static junit.framework.Test suite()
           
 void testBeanWithIdProperty()
           
 void testCycleReferences()
           
 void testCyclicReferenceStack1()
          Check that a cyclic reference exception is not thrown in this case
 void testCyclicReferenceStack2()
          This should throw a cyclic reference
 void testReadwithCollectionsInElementRoundTrip()
          This will test reading a simple recursive xml file
 void testReadWithoutCollectionsInElementRoundTrip()
          This will test reading a simple recursive xml file
 void testRegisterOverflow()
          Tests for a stack overflow bug
 void testRegisterOverflow2()
           
 
Methods inherited from class org.apache.commons.betwixt.AbstractTestCase
createBean, getTestFile, getTestFileURL
 
Methods inherited from class org.apache.commons.betwixt.xmlunit.XmlTestCase
createDocumentBuilder, getDomFactory, isValid, parseFile, parseString, parseString, validateWithSchema, xmlAssertIsomorphic, xmlAssertIsomorphic, xmlAssertIsomorphic, xmlAssertIsomorphic, xmlAssertIsomorphicContent, xmlAssertIsomorphicContent, xmlAssertIsomorphicContent, xmlAssertIsomorphicContent, xmlAssertIsValid, xmlAssertIsValid
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestRecursion

public TestRecursion(java.lang.String testName)
Method Detail

suite

public static junit.framework.Test suite()

testReadwithCollectionsInElementRoundTrip

public void testReadwithCollectionsInElementRoundTrip()
                                               throws java.lang.Exception
This will test reading a simple recursive xml file

Throws:
java.lang.Exception

testReadWithoutCollectionsInElementRoundTrip

public void testReadWithoutCollectionsInElementRoundTrip()
                                                  throws java.lang.Exception
This will test reading a simple recursive xml file

Throws:
java.lang.Exception

createXMLIntrospector

protected org.apache.commons.betwixt.XMLIntrospector createXMLIntrospector()
Set up the XMLIntroSpector


testBeanWithIdProperty

public void testBeanWithIdProperty()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testCyclicReferenceStack1

public void testCyclicReferenceStack1()
                               throws java.lang.Exception
Check that a cyclic reference exception is not thrown in this case

Throws:
java.lang.Exception

testCyclicReferenceStack2

public void testCyclicReferenceStack2()
                               throws java.lang.Exception
This should throw a cyclic reference

Throws:
java.lang.Exception

testRegisterOverflow

public void testRegisterOverflow()
                          throws java.lang.Exception
Tests for a stack overflow bug

Throws:
java.lang.Exception

testRegisterOverflow2

public void testRegisterOverflow2()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testCycleReferences

public void testCycleReferences()
                         throws java.lang.Exception
Throws:
java.lang.Exception


Copyright 2002-2008 The Apache Software Foundation. All Rights Reserved.