org.apache.commons.betwixt.versioning
Class TestVersioning

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

public class TestVersioning
extends AbstractTestCase


Field Summary
static org.apache.commons.logging.Log log
           
 
Fields inherited from class org.apache.commons.betwixt.AbstractTestCase
basedir
 
Fields inherited from class org.apache.commons.betwixt.xmlunit.XmlTestCase
debug
 
Constructor Summary
TestVersioning(java.lang.String testName)
           
 
Method Summary
 void testIntrospection()
           
 void testWrite1()
          Simple test case with no version specified: All elements/attributes will be written.
 void testWrite2()
          Version = 1 Attribute1 (2-/): Not written Attribute2 (1-2): Written Element1 (1-/): Written Element2 (2-/): Not written
 void testWrite3()
          Version = 2 Attribute1 (2-/): written Attribute2 (1-2): Written Element1 (1-/): Written Element2 (2-/): written
 void testWrite4()
          Version = 3 Attribute1 (2-/): written Attribute2 (1-2): Not Written Element1 (1-/): Written Element2 (2-/): written
 
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
 

Field Detail

log

public static org.apache.commons.logging.Log log
Constructor Detail

TestVersioning

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

testIntrospection

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

testWrite1

public void testWrite1()
                throws java.lang.Exception
Simple test case with no version specified: All elements/attributes will be written.

Throws:
java.lang.Exception

testWrite2

public void testWrite2()
                throws java.lang.Exception
Version = 1

Throws:
java.lang.Exception

testWrite3

public void testWrite3()
                throws java.lang.Exception
Version = 2

Throws:
java.lang.Exception

testWrite4

public void testWrite4()
                throws java.lang.Exception
Version = 3

Throws:
java.lang.Exception


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