ws-woden-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkapu...@apache.org
Subject svn commit: r326278 - /incubator/woden/java/test/org/apache/woden/tests/AllWodenTests.java
Date Tue, 18 Oct 2005 22:22:39 GMT
Author: jkaputin
Date: Tue Oct 18 15:22:32 2005
New Revision: 326278

URL: http://svn.apache.org/viewcvs?rev=326278&view=rev
Log:
Added a check to only run the QName junit tests if
running a 1.4 jvm because from Java 1.5 QName is 
included in the JRE and that version is loaded instead
of the Woden QName (so we won't want to run the 
Woden QName junit tests with a 1.5 jvm). The QName
classes have identical interfaces, but the Woden 
version is more robust in some of it's validation, as
per the j2ee 1.4 and j2se 1.5 javadoc for QName. The
junit tests reflect this extra validation (e.g. see
the valueOf() method).

Modified:
    incubator/woden/java/test/org/apache/woden/tests/AllWodenTests.java

Modified: incubator/woden/java/test/org/apache/woden/tests/AllWodenTests.java
URL: http://svn.apache.org/viewcvs/incubator/woden/java/test/org/apache/woden/tests/AllWodenTests.java?rev=326278&r1=326277&r2=326278&view=diff
==============================================================================
--- incubator/woden/java/test/org/apache/woden/tests/AllWodenTests.java (original)
+++ incubator/woden/java/test/org/apache/woden/tests/AllWodenTests.java Tue Oct 18 15:22:32
2005
@@ -43,7 +43,19 @@
   public AllWodenTests()
   {
     super("AllWodenTests");
-    addTest(QNameTest.suite());
+    
+    String ver = System.getProperty("java.version");
+    if(ver.startsWith("1.4"))
+    {
+        /*
+         * From Java 1.5.0 the QName class is included in the jre and loaded
+         * by the bootstrap classloader. However, we are running a 1.4 jvm
+         * now, so the Woden QName class will be loaded and we do want to
+         * run the junit tests for this class. 
+         */
+        addTest(QNameTest.suite());
+    }
+    
 	addTest(WSDLFactoryTest.suite());
 	addTest(WSDLReaderTest.suite());
 	addTest(W3CTestSuiteTest.suite());



---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org


Mime
View raw message