org.apache.commons.betwixt.strategy
Class TestElementsIO

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.betwixt.strategy.TestElementsIO
All Implemented Interfaces:
junit.framework.Test

public class TestElementsIO
extends junit.framework.TestCase

Tests streaming/destreaming of an Elements bean, a container for Element instances, using various name mappers The objective of this is to verify that containers whose names are plurals of their contents can be written and read back successfully.

Author:
Tim Anderson

Constructor Summary
TestElementsIO(java.lang.String name)
           
 
Method Summary
 void testCapitalizeNameMapper()
           
 void testDecapitalizeNameMapper()
           
 void testDefaultElementMapper()
           
 void testHyphenatedNameMapper()
           
 
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

TestElementsIO

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

testCapitalizeNameMapper

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

testDecapitalizeNameMapper

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

testDefaultElementMapper

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

testHyphenatedNameMapper

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


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