Author: bimargulies
Date: Sat Dec 20 08:52:17 2008
New Revision: 728300

URL: http://svn.apache.org/viewvc?rev=728300&view=rev
Log:
Update tests to Junit 4.

Modified:
    webservices/commons/trunk/modules/XmlSchema/pom.xml
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/AppInfoMarkupTest.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/AttributeGroupTest.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/AttributeRefTest.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/BlockTest.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ChoiceTest.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/CircularSchemaTest.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ComplexContentRestrictionTest.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ConstraintsTest.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ElementRefs2Test.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ElementRefsTest.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/EncodingTest.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/EnumValueTest.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ExternalAttTest.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/FacetsTest.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/GroupTest.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ImportTest.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/IncludeTest.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ListTest.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/MixedContentTest.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/MultipleExternalAttTest.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/NamespaceContextTest.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/NotationTest.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/RecursiveImportTest.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/RedefineTest.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/SequenceTest.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/SimpleContentExtensionTest.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/SimpleContentRestrictionTest.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TestElementForm.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TestForwardRefs.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TestLocalUnnamedSimpleType.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TestSimpleRestriction.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TestUnqualifiedSchema.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TwoSchemasRefTest.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TwoSchemasTest.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/UnionTest.java
    
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/WSCOMMONS377Test.java

Modified: webservices/commons/trunk/modules/XmlSchema/pom.xml
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/pom.xml?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- webservices/commons/trunk/modules/XmlSchema/pom.xml (original)
+++ webservices/commons/trunk/modules/XmlSchema/pom.xml Sat Dec 20 08:52:17 2008
@@ -626,7 +626,7 @@
     <dependency>
       <groupId>xmlunit</groupId>
       <artifactId>xmlunit</artifactId>
-      <version>1.1</version>
+      <version>1.2</version>
       <scope>test</scope>
     </dependency>
     <dependency>

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/AppInfoMarkupTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/AppInfoMarkupTest.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/AppInfoMarkupTest.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/AppInfoMarkupTest.java
 Sat Dec 20 08:52:17 2008
@@ -32,12 +32,12 @@
 import org.apache.ws.commons.schema.XmlSchema;
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 
-import org.custommonkey.xmlunit.XMLTestCase;
+import org.custommonkey.xmlunit.XMLAssert;
 import org.custommonkey.xmlunit.XMLUnit;
 
 import org.junit.Test;
 
-public class AppInfoMarkupTest extends XMLTestCase {
+public class AppInfoMarkupTest extends XMLAssert {
     @Test
     public void testAppInfo() throws Exception {
         DocumentBuilder b = 
DocumentBuilderFactory.newInstance().newDocumentBuilder();

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/AttributeGroupTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/AttributeGroupTest.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/AttributeGroupTest.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/AttributeGroupTest.java
 Sat Dec 20 08:52:17 2008
@@ -26,8 +26,6 @@
 import javax.xml.namespace.QName;
 import javax.xml.transform.stream.StreamSource;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchema;
 import org.apache.ws.commons.schema.XmlSchemaAttribute;
 import org.apache.ws.commons.schema.XmlSchemaAttributeGroup;
@@ -38,6 +36,9 @@
 import org.apache.ws.commons.schema.XmlSchemaObjectCollection;
 import org.apache.ws.commons.schema.XmlSchemaObjectTable;
 
+import org.junit.Assert;
+import org.junit.Test;
+
 /*
  * Copyright 2004,2007 The Apache Software Foundation.
  * Copyright 2006 International Business Machines Corp.
@@ -55,13 +56,14 @@
  * limitations under the License.
  *
  */
-public class AttributeGroupTest extends TestCase {
+public class AttributeGroupTest extends Assert {
 
     /**
      * This method will test the list.
      * 
      * @throws Exception Any exception encountered
      */
+    @Test
     public void testAttributeGroup() throws Exception {
 
         /*

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/AttributeRefTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/AttributeRefTest.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/AttributeRefTest.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/AttributeRefTest.java
 Sat Dec 20 08:52:17 2008
@@ -25,13 +25,14 @@
 import javax.xml.namespace.QName;
 import javax.xml.transform.stream.StreamSource;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchema;
 import org.apache.ws.commons.schema.XmlSchemaAttribute;
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 import org.apache.ws.commons.schema.XmlSchemaComplexType;
 
+import org.junit.Assert;
+import org.junit.Test;
+
 /*
  * Copyright 2004,2007 The Apache Software Foundation.
  * Copyright 2006 International Business Machines Corp.
@@ -49,8 +50,8 @@
  * limitations under the License.
  *
  */
-public class AttributeRefTest extends TestCase {
-
+public class AttributeRefTest extends Assert {
+    @Test
     public void testAttRefsWithNS() throws Exception {
         QName typeQName = new QName("http://tempuri.org/attribute";, 
"TestAttributeReferenceType");
 

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/BlockTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/BlockTest.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/BlockTest.java 
(original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/BlockTest.java 
Sat Dec 20 08:52:17 2008
@@ -25,13 +25,15 @@
 import javax.xml.namespace.QName;
 import javax.xml.transform.stream.StreamSource;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchema;
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 import org.apache.ws.commons.schema.XmlSchemaElement;
 
-public class BlockTest extends TestCase {
+import org.junit.Assert;
+import org.junit.Test;
+
+public class BlockTest extends Assert {
+    @Test
     public void testMixedContent() throws Exception {
         QName elementQName = new QName("http://soapinterop.org/xsd";, 
"complexElt");
 

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ChoiceTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ChoiceTest.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ChoiceTest.java 
(original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ChoiceTest.java 
Sat Dec 20 08:52:17 2008
@@ -28,21 +28,23 @@
 import javax.xml.namespace.QName;
 import javax.xml.transform.stream.StreamSource;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchemaChoice;
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 import org.apache.ws.commons.schema.XmlSchemaComplexType;
 import org.apache.ws.commons.schema.XmlSchemaElement;
 import org.apache.ws.commons.schema.XmlSchemaObjectCollection;
 
-public class ChoiceTest extends TestCase {
+import org.junit.Assert;
+import org.junit.Test;
+
+public class ChoiceTest extends Assert {
 
     /**
      * This method will test the choice.
      * 
      * @throws Exception Any exception encountered
      */
+    @Test
     public void testChoice() throws Exception {
 
         /*

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/CircularSchemaTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/CircularSchemaTest.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/CircularSchemaTest.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/CircularSchemaTest.java
 Sat Dec 20 08:52:17 2008
@@ -23,12 +23,14 @@
 
 import org.xml.sax.InputSource;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchema;
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 
-public class CircularSchemaTest extends TestCase {
+import org.junit.Assert;
+import org.junit.Test;
+
+public class CircularSchemaTest extends Assert {
+    @Test
     public void testCircular() throws Exception {
         XmlSchemaCollection schemas = new XmlSchemaCollection();
         File file = new File(Resources.asURI("circular/a.xsd"));

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ComplexContentRestrictionTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ComplexContentRestrictionTest.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ComplexContentRestrictionTest.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ComplexContentRestrictionTest.java
 Sat Dec 20 08:52:17 2008
@@ -27,8 +27,6 @@
 import javax.xml.namespace.QName;
 import javax.xml.transform.stream.StreamSource;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 import org.apache.ws.commons.schema.XmlSchemaComplexContentRestriction;
 import org.apache.ws.commons.schema.XmlSchemaComplexType;
@@ -37,13 +35,17 @@
 import org.apache.ws.commons.schema.XmlSchemaObjectCollection;
 import org.apache.ws.commons.schema.XmlSchemaSequence;
 
-public class ComplexContentRestrictionTest extends TestCase {
+import org.junit.Assert;
+import org.junit.Test;
+
+public class ComplexContentRestrictionTest extends Assert {
 
     /**
      * This method will test complex content restriction.
      * 
      * @throws Exception Any exception encountered
      */
+    @Test
     public void testComplexContentRestriction() throws Exception {
 
         /*

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ConstraintsTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ConstraintsTest.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ConstraintsTest.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ConstraintsTest.java
 Sat Dec 20 08:52:17 2008
@@ -27,8 +27,6 @@
 import javax.xml.namespace.QName;
 import javax.xml.transform.stream.StreamSource;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 import org.apache.ws.commons.schema.XmlSchemaElement;
 import org.apache.ws.commons.schema.XmlSchemaKey;
@@ -37,13 +35,17 @@
 import org.apache.ws.commons.schema.XmlSchemaUnique;
 import org.apache.ws.commons.schema.XmlSchemaXPath;
 
-public class ConstraintsTest extends TestCase {
+import org.junit.Assert;
+import org.junit.Test;
+
+public class ConstraintsTest extends Assert {
 
     /**
      * This method will test the unique, key, and keyref constaints.
      * 
      * @throws Exception Any exception encountered
      */
+    @Test
     public void testConstraints() throws Exception {
 
         /*

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ElementRefs2Test.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ElementRefs2Test.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ElementRefs2Test.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ElementRefs2Test.java
 Sat Dec 20 08:52:17 2008
@@ -34,8 +34,6 @@
 import org.w3c.dom.Node;
 import org.w3c.dom.NodeList;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchema;
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 import org.apache.ws.commons.schema.XmlSchemaComplexType;
@@ -43,8 +41,11 @@
 import org.apache.ws.commons.schema.XmlSchemaObjectCollection;
 import org.apache.ws.commons.schema.XmlSchemaSequence;
 
-public class ElementRefs2Test extends TestCase {
+import org.junit.Assert;
+import org.junit.Test;
 
+public class ElementRefs2Test extends Assert {
+    @Test
     public void testElementRefs() throws Exception {
         QName elementQName = new QName("http://soapinterop.org/types";, 
"attTests");
         InputStream is = new 
FileInputStream(Resources.asURI("elementreferences2.xsd"));

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ElementRefsTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ElementRefsTest.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ElementRefsTest.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ElementRefsTest.java
 Sat Dec 20 08:52:17 2008
@@ -27,8 +27,6 @@
 import javax.xml.namespace.QName;
 import javax.xml.transform.stream.StreamSource;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchema;
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 import org.apache.ws.commons.schema.XmlSchemaComplexType;
@@ -36,7 +34,11 @@
 import org.apache.ws.commons.schema.XmlSchemaObjectCollection;
 import org.apache.ws.commons.schema.XmlSchemaSequence;
 
-public class ElementRefsTest extends TestCase {
+import org.junit.Assert;
+import org.junit.Test;
+
+public class ElementRefsTest extends Assert {
+    @Test
     public void testElementRefs() throws Exception {
         QName elementQName = new QName("http://soapinterop.org/types";, 
"attTests");
         InputStream is = new 
FileInputStream(Resources.asURI("elementreferences.xsd"));

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/EncodingTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/EncodingTest.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/EncodingTest.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/EncodingTest.java
 Sat Dec 20 08:52:17 2008
@@ -30,13 +30,14 @@
 
 import org.w3c.dom.Document;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchema;
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 
-public class EncodingTest extends TestCase {
+import org.junit.Assert;
+import org.junit.Test;
 
+public class EncodingTest extends Assert {
+    @Test
     public void testExternalAtt() throws Exception {
         // create a DOM document
         DocumentBuilderFactory documentBuilderFactory = 
DocumentBuilderFactory.newInstance();

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/EnumValueTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/EnumValueTest.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/EnumValueTest.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/EnumValueTest.java
 Sat Dec 20 08:52:17 2008
@@ -22,16 +22,17 @@
 
 import org.w3c.dom.Document;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchema;
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 
+import org.junit.Assert;
+import org.junit.Test;
+
 /**
  * Created by IntelliJ IDEA. User: ajith
  */
-public class EnumValueTest extends TestCase {
-
+public class EnumValueTest extends Assert {
+    @Test
     public void testValue() throws Exception {
         // create a DOM document
         DocumentBuilderFactory documentBuilderFactory = 
DocumentBuilderFactory.newInstance();

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ExternalAttTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ExternalAttTest.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ExternalAttTest.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ExternalAttTest.java
 Sat Dec 20 08:52:17 2008
@@ -25,14 +25,15 @@
 
 import org.w3c.dom.Document;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchema;
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 import org.apache.ws.commons.schema.constants.Constants;
 
-public class ExternalAttTest extends TestCase {
+import org.junit.Assert;
+import org.junit.Test;
 
+public class ExternalAttTest extends Assert {
+    @Test
     public void testExternalAtt() throws Exception {
         // create a DOM document
         DocumentBuilderFactory documentBuilderFactory = 
DocumentBuilderFactory.newInstance();

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/FacetsTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/FacetsTest.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/FacetsTest.java 
(original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/FacetsTest.java 
Sat Dec 20 08:52:17 2008
@@ -27,8 +27,6 @@
 import javax.xml.namespace.QName;
 import javax.xml.transform.stream.StreamSource;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 import org.apache.ws.commons.schema.XmlSchemaElement;
 import org.apache.ws.commons.schema.XmlSchemaEnumerationFacet;
@@ -47,13 +45,17 @@
 import org.apache.ws.commons.schema.XmlSchemaTotalDigitsFacet;
 import org.apache.ws.commons.schema.XmlSchemaWhiteSpaceFacet;
 
-public class FacetsTest extends TestCase {
+import org.junit.Assert;
+import org.junit.Test;
+
+public class FacetsTest extends Assert {
 
     /**
      * This method will test for the length facet.
      * 
      * @throws Exception Any exception encountered
      */
+    @Test
     public void testLengthFacet() throws Exception {
 
         /*
@@ -117,6 +119,7 @@
      * 
      * @throws Exception Any Exception encountered
      */
+    @Test
     public void testPatternFacet() throws Exception {
 
         /*
@@ -172,6 +175,7 @@
      * 
      * @throws Exception Any exception encountered
      */
+    @Test
     public void testTotalDigitsFacet() throws Exception {
 
         /*
@@ -227,6 +231,7 @@
      * 
      * @throws Exception Any Exception encountered
      */
+    @Test
     public void testMinMaxInclusiveFacets() throws Exception {
 
         /*
@@ -291,6 +296,7 @@
      * 
      * @throws Exception Any Exception encountered
      */
+    @Test
     public void testMinMaxExlusiveFacets() throws Exception {
 
         /*
@@ -354,6 +360,7 @@
      * 
      * @throws Exception Any Exception encountered
      */
+    @Test
     public void testWhiteSpaceFacet() throws Exception {
 
         /*
@@ -409,6 +416,7 @@
      * 
      * @throws Exception Any Exception encountered
      */
+    @Test
     public void testFractionDigitsFacet() throws Exception {
 
         /*
@@ -472,6 +480,7 @@
      * 
      * @throws Exception Any Exception encountered
      */
+    @Test
     public void testMinMaxLengthFacets() throws Exception {
 
         /*
@@ -537,6 +546,7 @@
      * 
      * @throws Exception Any Exception encountered
      */
+    @Test
     public void testEnumerationFacet() throws Exception {
 
         /*

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/GroupTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/GroupTest.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/GroupTest.java 
(original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/GroupTest.java 
Sat Dec 20 08:52:17 2008
@@ -28,8 +28,6 @@
 import javax.xml.namespace.QName;
 import javax.xml.transform.stream.StreamSource;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchema;
 import org.apache.ws.commons.schema.XmlSchemaChoice;
 import org.apache.ws.commons.schema.XmlSchemaCollection;
@@ -40,13 +38,17 @@
 import org.apache.ws.commons.schema.XmlSchemaObjectCollection;
 import org.apache.ws.commons.schema.XmlSchemaObjectTable;
 
-public class GroupTest extends TestCase {
+import org.junit.Assert;
+import org.junit.Test;
+
+public class GroupTest extends Assert {
 
     /**
      * This method will test the group.
      * 
      * @throws Exception Any exception encountered
      */
+    @Test
     public void testGroup() throws Exception {
 
         /*

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ImportTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ImportTest.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ImportTest.java 
(original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ImportTest.java 
Sat Dec 20 08:52:17 2008
@@ -26,13 +26,14 @@
 
 import org.w3c.dom.Document;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchema;
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 
-public class ImportTest extends TestCase {
+import org.junit.Assert;
+import org.junit.Test;
 
+public class ImportTest extends Assert {
+    @Test
     public void testSchemaImport() throws Exception {
         // create a DOM document
         DocumentBuilderFactory documentBuilderFactory = 
DocumentBuilderFactory.newInstance();
@@ -56,6 +57,7 @@
      * 
      * @throws Exception
      */
+    @Test
     public void testSchemaImport2() throws Exception {
         File file = new File(Resources.asURI("importBase.xsd"));
         // create a DOM document
@@ -74,6 +76,7 @@
      * 
      * @throws Exception
      */
+    @Test
     public void testSchemaImport3() throws Exception {
         File file = new File(Resources.asURI("importBase.xsd"));
         // create a DOM document

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/IncludeTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/IncludeTest.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/IncludeTest.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/IncludeTest.java
 Sat Dec 20 08:52:17 2008
@@ -29,21 +29,23 @@
 
 import org.xml.sax.InputSource;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchema;
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 import org.apache.ws.commons.schema.XmlSchemaElement;
 import org.apache.ws.commons.schema.XmlSchemaInclude;
 import org.apache.ws.commons.schema.XmlSchemaObjectCollection;
 
-public class IncludeTest extends TestCase {
+import org.junit.Assert;
+import org.junit.Test;
+
+public class IncludeTest extends Assert {
 
     /**
      * This method will test the include.
      * 
      * @throws Exception Any exception encountered
      */
+    @Test
     public void testInclude() throws Exception {
 
         /*
@@ -99,6 +101,7 @@
     /**
      * Test importing a schema without namespace into a schema with namespace.
      */
+    @Test
     public void testImportSchemaWithoutNamespace() throws Exception {
         InputStream is = new 
FileInputStream(Resources.asURI("includingWithNamespace.xsd"));
         XmlSchemaCollection schemaCol = new XmlSchemaCollection();
@@ -110,6 +113,7 @@
     /**
      * Test importing a schema without namespace into a schema with namespace.
      */
+    @Test
     public void testIncludeSchemaWithoutNamespace() throws Exception {
         String uri = Resources.asURI("woden.xsd");
         InputSource is = new InputSource(new FileInputStream(uri));
@@ -132,6 +136,7 @@
      * 
      * @throws Exception
      */
+    @Test
     public void testSchemaInclude() throws Exception {
         String uri = Resources.asURI("WSCOMMONS-87/includeBase.xsd");
         InputSource isource = new InputSource(new FileInputStream(uri));
@@ -146,6 +151,7 @@
      * 
      * @throws Exception
      */
+    @Test
     public void testSchemaIncludeNoDefaultNS() throws Exception {
         String uri = 
Resources.asURI("WSCOMMONS-87/includeBaseNoDefaultNS.xsd");
         InputSource isource = new InputSource(new FileInputStream(uri));

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ListTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ListTest.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ListTest.java 
(original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/ListTest.java 
Sat Dec 20 08:52:17 2008
@@ -25,8 +25,6 @@
 import javax.xml.namespace.QName;
 import javax.xml.transform.stream.StreamSource;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 import org.apache.ws.commons.schema.XmlSchemaElement;
 import org.apache.ws.commons.schema.XmlSchemaSimpleType;
@@ -35,13 +33,17 @@
 import org.apache.ws.commons.schema.XmlSchemaSimpleTypeRestriction;
 import org.apache.ws.commons.schema.XmlSchemaType;
 
-public class ListTest extends TestCase {
+import org.junit.Assert;
+import org.junit.Test;
+
+public class ListTest extends Assert {
 
     /**
      * This method will test the list.
      * 
      * @throws Exception Any exception encountered
      */
+    @Test
     public void testList() throws Exception {
 
         /*

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/MixedContentTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/MixedContentTest.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/MixedContentTest.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/MixedContentTest.java
 Sat Dec 20 08:52:17 2008
@@ -25,8 +25,6 @@
 import javax.xml.namespace.QName;
 import javax.xml.transform.stream.StreamSource;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchema;
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 import org.apache.ws.commons.schema.XmlSchemaComplexContent;
@@ -34,7 +32,11 @@
 import org.apache.ws.commons.schema.XmlSchemaElement;
 import org.apache.ws.commons.schema.XmlSchemaType;
 
-public class MixedContentTest extends TestCase {
+import org.junit.Assert;
+import org.junit.Test;
+
+public class MixedContentTest extends Assert {
+    @Test
     public void testMixedContent() throws Exception {
         QName elementQName = new QName("http://soapinterop.org/xsd";, 
"complexElt");
 

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/MultipleExternalAttTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/MultipleExternalAttTest.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/MultipleExternalAttTest.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/MultipleExternalAttTest.java
 Sat Dec 20 08:52:17 2008
@@ -25,14 +25,16 @@
 
 import org.w3c.dom.Document;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchema;
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 import org.apache.ws.commons.schema.constants.Constants;
 
-public class MultipleExternalAttTest extends TestCase {
+import org.junit.Assert;
+import org.junit.Test;
+
+public class MultipleExternalAttTest extends Assert {
 
+    @Test
     public void testExternalAtt() throws Exception {
         // create a DOM document
         DocumentBuilderFactory documentBuilderFactory = 
DocumentBuilderFactory.newInstance();

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/NamespaceContextTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/NamespaceContextTest.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/NamespaceContextTest.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/NamespaceContextTest.java
 Sat Dec 20 08:52:17 2008
@@ -30,22 +30,27 @@
 import org.apache.ws.commons.schema.XmlSchema;
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 import org.apache.ws.commons.schema.utils.NamespaceMap;
-
-import org.custommonkey.xmlunit.XMLTestCase;
+import org.custommonkey.xmlunit.XMLAssert;
 import org.custommonkey.xmlunit.XMLUnit;
 
-public class NamespaceContextTest extends XMLTestCase {
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class NamespaceContextTest extends XMLAssert {
     protected boolean whitespace = true;
 
-    protected void setUp() throws Exception {
+    @Before
+    public void setUp() throws Exception {
         whitespace = XMLUnit.getIgnoreWhitespace();
         XMLUnit.setIgnoreWhitespace(true);
     }
-
-    protected void tearDown() throws java.lang.Exception {
+    @After
+    public void tearDown() throws java.lang.Exception {
         XMLUnit.setIgnoreWhitespace(whitespace);
     }
 
+    @Test
     public void testNamespaceContext() throws Exception {
         Map<String, Object> namespaceMapFromWSDL = new HashMap<String, 
Object>();
         namespaceMapFromWSDL.put("tns", new 
URI("http://example.org/getBalance/";));

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/NotationTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/NotationTest.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/NotationTest.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/NotationTest.java
 Sat Dec 20 08:52:17 2008
@@ -31,8 +31,6 @@
 import org.w3c.dom.Node;
 import org.w3c.dom.NodeList;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchema;
 import org.apache.ws.commons.schema.XmlSchemaAnnotation;
 import org.apache.ws.commons.schema.XmlSchemaCollection;
@@ -45,6 +43,9 @@
 import org.apache.ws.commons.schema.XmlSchemaSimpleType;
 import org.apache.ws.commons.schema.XmlSchemaSimpleTypeRestriction;
 
+import org.junit.Assert;
+import org.junit.Test;
+
 /*
  * Copyright 2004,2007 The Apache Software Foundation.
  * Copyright 2006 International Business Machines Corp.
@@ -63,13 +64,14 @@
  * 
  * @author Brent Ulbricht 
  */
-public class NotationTest extends TestCase {
+public class NotationTest extends Assert {
 
     /**
      * This method will test the notation.
      * 
      * @throws Exception Any exception encountered
      */
+    @Test
     public void testNotation() throws Exception {
 
         /*
@@ -154,7 +156,7 @@
         assertTrue("The set should have been empty, but instead contained: " + 
s + ".", s.isEmpty());
 
     }
-
+    
     private void testSimpleRestrictions(QName elementQName, QName 
notationName, XmlSchemaCollection schemaCol,
                                   XmlSchema schema) {
         XmlSchemaObjectTable notations = schema.getNotations();

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/RecursiveImportTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/RecursiveImportTest.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/RecursiveImportTest.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/RecursiveImportTest.java
 Sat Dec 20 08:52:17 2008
@@ -24,13 +24,14 @@
 
 import org.w3c.dom.Document;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchema;
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 
-public class RecursiveImportTest extends TestCase {
+import org.junit.Assert;
+import org.junit.Test;
 
+public class RecursiveImportTest extends Assert {
+    @Test
     public void testSchemaImport() throws Exception {
         // create a DOM document
         DocumentBuilderFactory documentBuilderFactory = 
DocumentBuilderFactory.newInstance();

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/RedefineTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/RedefineTest.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/RedefineTest.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/RedefineTest.java
 Sat Dec 20 08:52:17 2008
@@ -28,8 +28,6 @@
 import javax.xml.namespace.QName;
 import javax.xml.transform.stream.StreamSource;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchema;
 import org.apache.ws.commons.schema.XmlSchemaAttribute;
 import org.apache.ws.commons.schema.XmlSchemaAttributeGroup;
@@ -49,13 +47,17 @@
 import org.apache.ws.commons.schema.XmlSchemaSimpleType;
 import org.apache.ws.commons.schema.XmlSchemaSimpleTypeRestriction;
 
-public class RedefineTest extends TestCase {
+import org.junit.Assert;
+import org.junit.Test;
+
+public class RedefineTest extends Assert {
 
     /**
      * This method will test a complex type redefine.
      * 
      * @throws Exception Any exception encountered
      */
+    @Test
     public void testComplexTypeRedefine() throws Exception {
 
         /*
@@ -131,6 +133,7 @@
      * 
      * @throws Exception Any exception encountered
      */
+    @Test
     public void testSimpleTypeRedefine() throws Exception {
         /*
          * redefine3.xsd ----------------- <schema 
xmlns="http://www.w3.org/2001/XMLSchema";
@@ -206,6 +209,7 @@
      * 
      * @throws Exception Any exception encountered
      */
+    @Test
     public void testGroupRedefine() throws Exception {
 
         /*
@@ -271,6 +275,7 @@
      * 
      * @throws Exception Any exception encountered
      */
+    @Test
     public void testAttributeGroupRedefine() throws Exception {
 
         /*
@@ -327,6 +332,7 @@
      * 
      * @throws Exception Any exception encountered
      */
+    @Test
     public void testComplexTypeRedefineWithRelativeImports() throws Exception {
 
         /*

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/SequenceTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/SequenceTest.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/SequenceTest.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/SequenceTest.java
 Sat Dec 20 08:52:17 2008
@@ -25,20 +25,22 @@
 import javax.xml.namespace.QName;
 import javax.xml.transform.stream.StreamSource;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 import org.apache.ws.commons.schema.XmlSchemaComplexType;
 import org.apache.ws.commons.schema.XmlSchemaElement;
 import org.apache.ws.commons.schema.XmlSchemaSequence;
 
-public class SequenceTest extends TestCase {
+import org.junit.Assert;
+import org.junit.Test;
+
+public class SequenceTest extends Assert {
 
     /**
      * This method will test the sequence - the min and max occurences.
      * 
      * @throws Exception Any exception encountered
      */
+    @Test
     public void testChoice() throws Exception {
 
         /*

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/SimpleContentExtensionTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/SimpleContentExtensionTest.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/SimpleContentExtensionTest.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/SimpleContentExtensionTest.java
 Sat Dec 20 08:52:17 2008
@@ -27,8 +27,6 @@
 import javax.xml.namespace.QName;
 import javax.xml.transform.stream.StreamSource;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchema;
 import org.apache.ws.commons.schema.XmlSchemaAttribute;
 import org.apache.ws.commons.schema.XmlSchemaCollection;
@@ -38,13 +36,17 @@
 import org.apache.ws.commons.schema.XmlSchemaSimpleContent;
 import org.apache.ws.commons.schema.XmlSchemaSimpleContentExtension;
 
-public class SimpleContentExtensionTest extends TestCase {
+import org.junit.Assert;
+import org.junit.Test;
+
+public class SimpleContentExtensionTest extends Assert {
 
     /**
      * This method will test the simple content extension.
      * 
      * @throws Exception Any exception encountered
      */
+    @Test
     public void testSimpleContentExtension() throws Exception {
 
         /*

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/SimpleContentRestrictionTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/SimpleContentRestrictionTest.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/SimpleContentRestrictionTest.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/SimpleContentRestrictionTest.java
 Sat Dec 20 08:52:17 2008
@@ -27,8 +27,6 @@
 import javax.xml.namespace.QName;
 import javax.xml.transform.stream.StreamSource;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchema;
 import org.apache.ws.commons.schema.XmlSchemaAttribute;
 import org.apache.ws.commons.schema.XmlSchemaCollection;
@@ -38,6 +36,9 @@
 import org.apache.ws.commons.schema.XmlSchemaSimpleContent;
 import org.apache.ws.commons.schema.XmlSchemaSimpleContentRestriction;
 
+import org.junit.Assert;
+import org.junit.Test;
+
 /*
  * Copyright 2004,2007 The Apache Software Foundation.
  * Copyright 2006 International Business Machines Corp.
@@ -55,13 +56,14 @@
  * limitations under the License.
  *
  */
-public class SimpleContentRestrictionTest extends TestCase {
+public class SimpleContentRestrictionTest extends Assert {
 
     /**
      * This method will test the simple content restriction.
      * 
      * @throws Exception Any exception encountered
      */
+    @Test
     public void testSimpleContentRestriction() throws Exception {
 
         /*

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TestElementForm.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TestElementForm.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TestElementForm.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TestElementForm.java
 Sat Dec 20 08:52:17 2008
@@ -24,28 +24,32 @@
 import javax.xml.namespace.QName;
 import javax.xml.transform.stream.StreamSource;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 import org.apache.ws.commons.schema.XmlSchemaComplexType;
 import org.apache.ws.commons.schema.XmlSchemaElement;
 import org.apache.ws.commons.schema.XmlSchemaObjectCollection;
 import org.apache.ws.commons.schema.XmlSchemaSequence;
 
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.Test;
+
 /**
  * TestElementForm
  */
-public class TestElementForm extends TestCase {
+public class TestElementForm extends Assert {
     static final String NS = "http://unqualified-elements.example.com";;
     static final QName UNQUAL = new QName(NS, "unQualifiedLocals");
     private XmlSchemaCollection schema;
 
-    protected void setUp() throws Exception {
+    @Before
+    public void setUp() throws Exception {
         InputStream is = new 
FileInputStream(Resources.asURI("elementForm.xsd"));
         schema = new XmlSchemaCollection();
         schema.read(new StreamSource(is), null);
     }
 
+    @Test
     public void testLocalElements() throws Exception {
         XmlSchemaElement element = schema.getElementByQName(UNQUAL);
         assertNotNull("Couldn't find unQualifiedLocals element", element);

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TestForwardRefs.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TestForwardRefs.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TestForwardRefs.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TestForwardRefs.java
 Sat Dec 20 08:52:17 2008
@@ -25,18 +25,20 @@
 import javax.xml.namespace.QName;
 import javax.xml.transform.stream.StreamSource;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 import org.apache.ws.commons.schema.XmlSchemaComplexType;
 import org.apache.ws.commons.schema.XmlSchemaElement;
 import org.apache.ws.commons.schema.XmlSchemaSequence;
 import org.apache.ws.commons.schema.XmlSchemaType;
 
+import org.junit.Assert;
+import org.junit.Test;
+
 /**
  */
-public class TestForwardRefs extends TestCase {
+public class TestForwardRefs extends Assert {
 
+    @Test
     public void testForwardRefs() throws Exception {
         QName elementQName = new QName("http://soapinterop.org/types";, 
"attrTest");
         InputStream is = new 
FileInputStream(Resources.asURI("forwardRef.xsd"));

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TestLocalUnnamedSimpleType.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TestLocalUnnamedSimpleType.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TestLocalUnnamedSimpleType.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TestLocalUnnamedSimpleType.java
 Sat Dec 20 08:52:17 2008
@@ -23,14 +23,15 @@
 
 import javax.xml.transform.stream.StreamSource;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 
+import org.junit.Assert;
+import org.junit.Test;
+
 /**
  * TestElementForm
  */
-public class TestLocalUnnamedSimpleType extends TestCase {
+public class TestLocalUnnamedSimpleType extends Assert {
     String schemaXML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
                        + "<schema xmlns=\"http://www.w3.org/2001/XMLSchema\"\n";
                        + 
"targetNamespace=\"http://finance.example.com/CreditCardFaults/xsd\"\n";
@@ -44,6 +45,7 @@
                        + "<enumeration value=\"MASTERCARD\" />\n" + 
"<enumeration value=\"VISA\" />\n"
                        + "</restriction>\n" + "</simpleType>\n" + 
"</element>\n" + "</schema> ";
 
+    @Test
     public void testLocalUnnamedSimpleType() throws Exception {
         XmlSchemaCollection schema = new XmlSchemaCollection();
         schema.read(new StreamSource(new 
ByteArrayInputStream(schemaXML.getBytes())), null);

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TestSimpleRestriction.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TestSimpleRestriction.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TestSimpleRestriction.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TestSimpleRestriction.java
 Sat Dec 20 08:52:17 2008
@@ -24,15 +24,17 @@
 import javax.xml.namespace.QName;
 import javax.xml.transform.stream.StreamSource;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 import org.apache.ws.commons.schema.XmlSchemaElement;
 import org.apache.ws.commons.schema.XmlSchemaSimpleType;
 import org.apache.ws.commons.schema.XmlSchemaSimpleTypeRestriction;
 import org.apache.ws.commons.schema.XmlSchemaType;
 
-public class TestSimpleRestriction extends TestCase {
+import org.junit.Assert;
+import org.junit.Test;
+
+public class TestSimpleRestriction extends Assert {
+    @Test
     public void testSimpleRestriction() throws Exception {
         QName typeQName = new QName("http://soapinterop.org/types";, 
"layoutComponentType");
         QName elementQName = new QName("http://soapinterop.org/types";, "foo");
@@ -51,6 +53,7 @@
         assertNotNull(type);
     }
 
+    @Test
     public void testSimpleTypeRestrictionWithoutNamespace() throws Exception {
         InputStream is = new 
FileInputStream(Resources.asURI("includedWithoutNamespace.xsd"));
         XmlSchemaCollection schema = new XmlSchemaCollection();

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TestUnqualifiedSchema.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TestUnqualifiedSchema.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TestUnqualifiedSchema.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TestUnqualifiedSchema.java
 Sat Dec 20 08:52:17 2008
@@ -26,8 +26,6 @@
 
 import org.w3c.dom.Document;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchema;
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 import org.apache.ws.commons.schema.XmlSchemaComplexType;
@@ -36,8 +34,12 @@
 import org.apache.ws.commons.schema.XmlSchemaSequence;
 import org.apache.ws.commons.schema.XmlSchemaType;
 
-public class TestUnqualifiedSchema extends TestCase {
+import org.junit.Assert;
+import org.junit.Test;
+
+public class TestUnqualifiedSchema extends Assert {
 
+    @Test
     public void testUnqualifiedSchemas() throws Exception {
         DocumentBuilderFactory documentBuilderFactory = 
DocumentBuilderFactory.newInstance();
         documentBuilderFactory.setNamespaceAware(true);
@@ -58,7 +60,6 @@
         Iterator iterator = items.getIterator();
         while (iterator.hasNext()) {
             XmlSchemaElement elt2 = (XmlSchemaElement)iterator.next();
-            System.out.println(elt2.getQName());
             XmlSchemaType schemaType2 = elt2.getSchemaType();
 
             assertNotNull(schemaType2);

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TwoSchemasRefTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TwoSchemasRefTest.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TwoSchemasRefTest.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TwoSchemasRefTest.java
 Sat Dec 20 08:52:17 2008
@@ -27,13 +27,15 @@
 import org.w3c.dom.Node;
 import org.w3c.dom.NodeList;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 import org.apache.ws.commons.schema.XmlSchemaElement;
 
-public class TwoSchemasRefTest extends TestCase {
+import org.junit.Assert;
+import org.junit.Test;
+
+public class TwoSchemasRefTest extends Assert {
 
+    @Test
     public void testTwoSchemas() throws Exception {
         DocumentBuilderFactory documentBuilderFactory = 
DocumentBuilderFactory.newInstance();
         documentBuilderFactory.setNamespaceAware(true);

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TwoSchemasTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TwoSchemasTest.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TwoSchemasTest.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/TwoSchemasTest.java
 Sat Dec 20 08:52:17 2008
@@ -27,12 +27,14 @@
 import org.w3c.dom.Node;
 import org.w3c.dom.NodeList;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 
-public class TwoSchemasTest extends TestCase {
+import org.junit.Assert;
+import org.junit.Test;
+
+public class TwoSchemasTest extends Assert {
 
+    @Test
     public void testTwoSchemas() throws Exception {
         DocumentBuilderFactory documentBuilderFactory = 
DocumentBuilderFactory.newInstance();
         documentBuilderFactory.setNamespaceAware(true);

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/UnionTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/UnionTest.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/UnionTest.java 
(original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/UnionTest.java 
Sat Dec 20 08:52:17 2008
@@ -27,21 +27,23 @@
 import javax.xml.namespace.QName;
 import javax.xml.transform.stream.StreamSource;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 import org.apache.ws.commons.schema.XmlSchemaElement;
 import org.apache.ws.commons.schema.XmlSchemaSimpleType;
 import org.apache.ws.commons.schema.XmlSchemaSimpleTypeUnion;
 
+import org.junit.Assert;
+import org.junit.Test;
+
 
-public class UnionTest extends TestCase {
+public class UnionTest extends Assert {
 
     /**
      * This method will test the union.
      * 
      * @throws Exception Any exception encountered
      */
+    @Test
     public void testUnion() throws Exception {
 
         /*

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/WSCOMMONS377Test.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/WSCOMMONS377Test.java?rev=728300&r1=728299&r2=728300&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/WSCOMMONS377Test.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/WSCOMMONS377Test.java
 Sat Dec 20 08:52:17 2008
@@ -24,17 +24,18 @@
 import org.w3c.dom.Element;
 import org.w3c.dom.NodeList;
 
-import junit.framework.TestCase;
-
 import org.apache.ws.commons.schema.XmlSchema;
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 import org.apache.ws.commons.schema.constants.Constants;
 
+import org.junit.Assert;
+import org.junit.Test;
+
 /**
  * @author alex $Revision$
  */
-public class WSCOMMONS377Test extends TestCase {
-
+public class WSCOMMONS377Test extends Assert {
+    @Test
     public void testSchemaImport() throws Exception {
         DocumentBuilderFactory fac = DocumentBuilderFactory.newInstance();
         fac.setNamespaceAware(true);


Reply via email to