You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by bi...@apache.org on 2008/12/20 17:55:41 UTC
svn commit: r728301 - in
/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/customext:
attrib/ elt/
Author: bimargulies
Date: Sat Dec 20 08:55:41 2008
New Revision: 728301
URL: http://svn.apache.org/viewvc?rev=728301&view=rev
Log:
Update tests to Junit 4.
Modified:
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/customext/attrib/CustomExtDeserializerTest.java
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/customext/attrib/CustomExtensionSerializerTest.java
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/customext/elt/CustomExtElementDeserializerTest.java
webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/customext/elt/CustomExtElementSerializerTest.java
Modified: webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/customext/attrib/CustomExtDeserializerTest.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/customext/attrib/CustomExtDeserializerTest.java?rev=728301&r1=728300&r2=728301&view=diff
==============================================================================
--- webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/customext/attrib/CustomExtDeserializerTest.java (original)
+++ webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/customext/attrib/CustomExtDeserializerTest.java Sat Dec 20 08:55:41 2008
@@ -25,21 +25,22 @@
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.XmlSchemaElement;
import org.apache.ws.commons.schema.constants.Constants;
+import org.junit.Assert;
+import org.junit.Test;
+
import tests.Resources;
/**
* Deserialize the custom extension types
*/
-public class CustomExtDeserializerTest
- extends TestCase {
+public class CustomExtDeserializerTest extends Assert {
+ @Test
public void testDeserialization() throws Exception {
// set the system property for the custom extension registry
System.setProperty(Constants.SystemConstants.EXTENSION_REGISTRY_KEY, CustomExtensionRegistry.class
Modified: webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/customext/attrib/CustomExtensionSerializerTest.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/customext/attrib/CustomExtensionSerializerTest.java?rev=728301&r1=728300&r2=728301&view=diff
==============================================================================
--- webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/customext/attrib/CustomExtensionSerializerTest.java (original)
+++ webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/customext/attrib/CustomExtensionSerializerTest.java Sat Dec 20 08:55:41 2008
@@ -27,20 +27,22 @@
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.XmlSchemaElement;
import org.apache.ws.commons.schema.constants.Constants;
+import org.junit.Assert;
+import org.junit.Test;
+
import tests.Resources;
/**
* Test class to do a full parsing run with the extensions
*/
-public class CustomExtensionSerializerTest extends TestCase {
+public class CustomExtensionSerializerTest extends Assert {
+ @Test
public void testSerialization() throws Exception {
// set the system property for the custom extension registry
System.setProperty(Constants.SystemConstants.EXTENSION_REGISTRY_KEY, CustomExtensionRegistry.class
Modified: webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/customext/elt/CustomExtElementDeserializerTest.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/customext/elt/CustomExtElementDeserializerTest.java?rev=728301&r1=728300&r2=728301&view=diff
==============================================================================
--- webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/customext/elt/CustomExtElementDeserializerTest.java (original)
+++ webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/customext/elt/CustomExtElementDeserializerTest.java Sat Dec 20 08:55:41 2008
@@ -25,20 +25,22 @@
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.XmlSchemaElement;
import org.apache.ws.commons.schema.constants.Constants;
+import org.junit.Assert;
+import org.junit.Test;
+
import tests.Resources;
/**
* Test class to run through the full cycle of build-check
*/
-public class CustomExtElementDeserializerTest extends TestCase {
+public class CustomExtElementDeserializerTest extends Assert {
+ @Test
public void testDeserialization() throws Exception {
// set the system property for the custom extension registry
System.setProperty(Constants.SystemConstants.EXTENSION_REGISTRY_KEY, CustomExtensionRegistry.class
Modified: webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/customext/elt/CustomExtElementSerializerTest.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/customext/elt/CustomExtElementSerializerTest.java?rev=728301&r1=728300&r2=728301&view=diff
==============================================================================
--- webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/customext/elt/CustomExtElementSerializerTest.java (original)
+++ webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/customext/elt/CustomExtElementSerializerTest.java Sat Dec 20 08:55:41 2008
@@ -27,20 +27,22 @@
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.XmlSchemaElement;
import org.apache.ws.commons.schema.constants.Constants;
+import org.junit.Assert;
+import org.junit.Test;
+
import tests.Resources;
/**
* Test class to run through the full cycle of build-serialize-build-check
*/
-public class CustomExtElementSerializerTest extends TestCase {
+public class CustomExtElementSerializerTest extends Assert {
+ @Test
public void testSerialization() throws Exception {
// set the system property for the custom extension registry
System.setProperty(Constants.SystemConstants.EXTENSION_REGISTRY_KEY, CustomExtensionRegistry.class