org.apache.commons.betwixt
Class TestBeanWriter

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

public class TestBeanWriter
extends AbstractTestCase

Test harness for the BeanWriter

Version:
$Revision: 438373 $
Author:
James Strachan, Martin van den Bemt

Nested Class Summary
static class TestBeanWriter.BeanWithAddMethod
           
 
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
TestBeanWriter(java.lang.String testName)
           
 
Method Summary
static void main(java.lang.String[] args)
           
static junit.framework.Test suite()
           
 void testArrayWrite()
           
 void testBeanWriter()
           
 void testBeanWriterWorksWithAnAddMethodAndACollection()
           
 void testEscaping()
           
 void testListedWriteEmptyElements()
          Test nested case for writing empty elements
 void testLooping()
           
 void testSimpleWriteEmptyElements()
          Test simplest case for writing empty elements
 void testValidEndOfLine()
          Testing valid endofline characters.
 void testWriteNameMapperStrategy()
           
 
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

TestBeanWriter

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

main

public static void main(java.lang.String[] args)

suite

public static junit.framework.Test suite()

testBeanWriter

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

testLooping

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

testEscaping

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

testValidEndOfLine

public void testValidEndOfLine()
                        throws java.lang.Exception
Testing valid endofline characters. It tests if there is a warning on System.err

Throws:
java.lang.Exception

testSimpleWriteEmptyElements

public void testSimpleWriteEmptyElements()
                                  throws java.lang.Exception
Test simplest case for writing empty elements

Throws:
java.lang.Exception

testArrayWrite

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

testListedWriteEmptyElements

public void testListedWriteEmptyElements()
                                  throws java.lang.Exception
Test nested case for writing empty elements

Throws:
java.lang.Exception

testWriteNameMapperStrategy

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

testBeanWriterWorksWithAnAddMethodAndACollection

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


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