org.apache.commons.betwixt.introspection
Class TestDeclarativeIntrospection

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

public class TestDeclarativeIntrospection
extends AbstractTestCase

Tests for the new, more declarative style of introspection.

Version:
$Revision: 561314 $
Author:
Apache Commons Team

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
TestDeclarativeIntrospection(java.lang.String name)
           
 
Method Summary
 void testConcreteMapNoWrap()
           
 void testConcreteMapWithWrap()
           
 void testIsSimpleForPrimitives()
           
 void testMapWithSimpleEntry()
          Tests introspector of map with simple entries
 void testMapWithSimpleKey()
          Tests for setting for map with a simple key
 void testSimpleElementIsHollow()
          Tests whether a simple element's ElementDescriptor is hollow
 void testSimpleForRSS()
           
 void testStandardPropertyIsHollow()
          Tests whether a standard property's ElementDescriptor is hollow (as expected)
 void testUnwrappedCollective()
           
 void testUnwrappedMap()
           
 void testWrappedCollective()
           
 void testWrappedMap()
           
 
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

TestDeclarativeIntrospection

public TestDeclarativeIntrospection(java.lang.String name)
Method Detail

testStandardPropertyIsHollow

public void testStandardPropertyIsHollow()
                                  throws java.lang.Exception
Tests whether a standard property's ElementDescriptor is hollow (as expected)

Throws:
java.lang.Exception

testSimpleElementIsHollow

public void testSimpleElementIsHollow()
                               throws java.lang.Exception
Tests whether a simple element's ElementDescriptor is hollow

Throws:
java.lang.Exception

testWrappedCollective

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

testUnwrappedCollective

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

testUnwrappedMap

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

testWrappedMap

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

testIsSimpleForPrimitives

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

testSimpleForRSS

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

testMapWithSimpleKey

public void testMapWithSimpleKey()
                          throws java.lang.Exception
Tests for setting for map with a simple key

Throws:
java.lang.Exception

testMapWithSimpleEntry

public void testMapWithSimpleEntry()
                            throws java.lang.Exception
Tests introspector of map with simple entries

Throws:
java.lang.Exception

testConcreteMapNoWrap

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

testConcreteMapWithWrap

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


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