org.apache.commons.betwixt
Class TestMultipleCollectionMappings

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.TestMultipleCollectionMappings
All Implemented Interfaces:
junit.framework.Test

public class TestMultipleCollectionMappings
extends AbstractTestCase

Tests the multi-mapping of collections with polymorphic entries.

Author:
Thomas Dudziak (tomdz@apache.org)

Nested Class Summary
static class TestMultipleCollectionMappings.Container
           
static interface TestMultipleCollectionMappings.Element
           
static class TestMultipleCollectionMappings.ElementA
           
static class TestMultipleCollectionMappings.ElementB
           
static class TestMultipleCollectionMappings.ElementC
           
static class TestMultipleCollectionMappings.InnerNode
           
static class TestMultipleCollectionMappings.Node1
           
static class TestMultipleCollectionMappings.Node2
           
static class TestMultipleCollectionMappings.Node3
           
 
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
TestMultipleCollectionMappings(java.lang.String testName)
           
 
Method Summary
 void testInvalidXML()
           
 void testMixed()
           
 void testOnlyElements()
           
 void testOnlyNodes()
           
 
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

TestMultipleCollectionMappings

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

testOnlyElements

public void testOnlyElements()
                      throws java.io.IOException,
                             org.xml.sax.SAXException,
                             java.beans.IntrospectionException
Throws:
java.io.IOException
org.xml.sax.SAXException
java.beans.IntrospectionException

testOnlyNodes

public void testOnlyNodes()
                   throws java.io.IOException,
                          org.xml.sax.SAXException,
                          java.beans.IntrospectionException
Throws:
java.io.IOException
org.xml.sax.SAXException
java.beans.IntrospectionException

testMixed

public void testMixed()
               throws java.io.IOException,
                      org.xml.sax.SAXException,
                      java.beans.IntrospectionException
Throws:
java.io.IOException
org.xml.sax.SAXException
java.beans.IntrospectionException

testInvalidXML

public void testInvalidXML()
                    throws java.io.IOException,
                           org.xml.sax.SAXException,
                           java.beans.IntrospectionException
Throws:
java.io.IOException
org.xml.sax.SAXException
java.beans.IntrospectionException


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