Author: ningjiang
Date: Fri Nov 19 13:54:22 2010
New Revision: 1036839

URL: http://svn.apache.org/viewvc?rev=1036839&view=rev
Log:
Disable the osgi tests when the tests is running with JDK1.6

Modified:
    camel/trunk/tests/camel-itest-osgi/pom.xml
    
camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/cxf/CxfProxyExampleTest.java

Modified: camel/trunk/tests/camel-itest-osgi/pom.xml
URL: 
http://svn.apache.org/viewvc/camel/trunk/tests/camel-itest-osgi/pom.xml?rev=1036839&r1=1036838&r2=1036839&view=diff
==============================================================================
--- camel/trunk/tests/camel-itest-osgi/pom.xml (original)
+++ camel/trunk/tests/camel-itest-osgi/pom.xml Fri Nov 19 13:54:22 2010
@@ -310,9 +310,32 @@
 
     </plugins>
   </build>
- 
    
   <profiles>
+        <profile>
+           <!-- current osgi test can't run with JDK 1.6.0 -->
+           <id>skip-tests</id>
+           <activation>
+             <jdk>1.6</jdk>
+           </activation>
+           <build>
+            <plugins>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-surefire-plugin</artifactId>
+                    <configuration>
+                        <excludes>
+                            <!-- TODO: temporary disable unit test to let TC 
not hang -->
+                            <exclude>**/*Test.*</exclude>
+                        </excludes>
+                        <systemPropertyVariables>
+                            <springVersion>${spring-version}</springVersion>
+                        </systemPropertyVariables>
+                    </configuration>
+                </plugin>
+            </plugins>
+           </build>
+        </profile>
        <profile>
         <id>ci-build-profile</id>
         <activation>
@@ -335,7 +358,7 @@
                             <include>**/*Test.*</include>
                         </includes>
                         <excludes>
-                                   <!-- TODO: temporary disable unit test to 
let TC not hang -->
+                           <!-- TODO: temporary disable unit test to let TC 
not hang -->
                            <exclude>**/*Test.*</exclude>
                             <!--There are some conflicts of the JAXB OSGi 
bundle and Hudson System jar
                                 so I comment out these JAXB related tests -->

Modified: 
camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/cxf/CxfProxyExampleTest.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/cxf/CxfProxyExampleTest.java?rev=1036839&r1=1036838&r2=1036839&view=diff
==============================================================================
--- 
camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/cxf/CxfProxyExampleTest.java
 (original)
+++ 
camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/cxf/CxfProxyExampleTest.java
 Fri Nov 19 13:54:22 2010
@@ -79,11 +79,7 @@ public class CxfProxyExampleTest extends
     protected OsgiBundleXmlApplicationContext createApplicationContext() {
         return new OsgiBundleXmlApplicationContext(new 
String[]{"org/apache/camel/itest/osgi/cxf/camel-config.xml"});
     }
-    
-    protected void setThreadContextClassLoader() {
-        // do nothing here
-    }
-
+   
     // TODO: CxfConsumer should use OSGi http service (no embedded Jetty)
     // TODO: Make this test work with OSGi
 


Reply via email to