Save This Page
Home » cactus-1.8.0-src » org.apache.cactus.integration.ant.deployment.webapp » [javadoc | source]
org.apache.cactus.integration.ant.deployment.webapp
public final class: TestWebXmlVersion [javadoc | source]
java.lang.Object
   junit.framework.TestCase
      org.apache.cactus.integration.ant.deployment.webapp.TestWebXmlVersion
Unit tests for WebXmlVersion .
Method from org.apache.cactus.integration.ant.deployment.webapp.TestWebXmlVersion Summary:
setUp,   testCompare22To22,   testCompare22To23,   testCompare23To22,   testCompare23To23,   testValueOfDocType22,   testValueOfDocType23,   testValueOfNull,   testValueOfUnknownDocType
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cactus.integration.ant.deployment.webapp.TestWebXmlVersion Detail:
 public  void setUp() throws ParserConfigurationException 
 public  void testCompare22To22() throws Exception 
    Verifies that comparing version 2.2 to version 2.2 yields zero.
 public  void testCompare22To23() throws Exception 
    Verifies that comparing version 2.2 to version 2.3 yields a negative value.
 public  void testCompare23To22() throws Exception 
    Verifies that comparing version 2.2 to version 2.3 yields a negative value.
 public  void testCompare23To23() throws Exception 
    Verifies that comparing version 2.3 to version 2.3 yields zero.
 public  void testValueOfDocType22() throws Exception 
    Verifies that calling WebXmlVersion.valueOf() with a web-app 2.2 document type returns the correct instance.
 public  void testValueOfDocType23() throws Exception 
    Verifies that calling WebXmlVersion.valueOf() with a web-app 2.3 document type returns the correct instance.
 public  void testValueOfNull() throws Exception 
    Verifies that calling WebXmlVersion.valueOf(null) throws a NullPointerException.
 public  void testValueOfUnknownDocType() throws Exception 
    Verifies that calling WebXmlVersion.valueOf() with a unknown document type returns null.