org.apache.commons.betwixt.dotbetwixt
Class TestBeanToXml

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

public class TestBeanToXml
extends XmlTestCase

Provides xml test utilities. Hopefully, these might be moved into [xmlunit] sometime.

Author:
Robert Burrell Donkin

Field Summary
 
Fields inherited from class org.apache.commons.betwixt.xmlunit.XmlTestCase
debug
 
Constructor Summary
TestBeanToXml(java.lang.String testName)
           
 
Method Summary
static junit.framework.Test suite()
           
 void testBadDotBetwixtNames()
          This tests that only well formed names for elements and attributes are allowed by .betwixt files
 void testBasicInterfaceImpl()
          Tests basic use of an implementation for an interface
 void testMixedContent()
          Test output of bean with mixed content
 void testOne()
           
 void testSimpleBean()
           
 void testSimpleMixedContent()
          Test output of bean with mixed content
 void testWriteRecursiveBean()
           
 
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

TestBeanToXml

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

suite

public static junit.framework.Test suite()

testOne

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

testSimpleBean

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

testWriteRecursiveBean

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

testBadDotBetwixtNames

public void testBadDotBetwixtNames()
                            throws java.lang.Exception
This tests that only well formed names for elements and attributes are allowed by .betwixt files

Throws:
java.lang.Exception

testMixedContent

public void testMixedContent()
                      throws java.lang.Exception
Test output of bean with mixed content

Throws:
java.lang.Exception

testSimpleMixedContent

public void testSimpleMixedContent()
                            throws java.lang.Exception
Test output of bean with mixed content

Throws:
java.lang.Exception

testBasicInterfaceImpl

public void testBasicInterfaceImpl()
                            throws java.lang.Exception
Tests basic use of an implementation for an interface

Throws:
java.lang.Exception


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