camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r774222 - /camel/trunk/camel-core/src/test/java/org/apache/camel/processor/RoutePerformanceTest.java
Date Wed, 13 May 2009 06:03:10 GMT
Author: davsclaus
Date: Wed May 13 06:03:10 2009
New Revision: 774222

URL: http://svn.apache.org/viewvc?rev=774222&view=rev
Log:
HP-UX is just to slow so disabled this unit test for that platform

Modified:
    camel/trunk/camel-core/src/test/java/org/apache/camel/processor/RoutePerformanceTest.java

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/processor/RoutePerformanceTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/RoutePerformanceTest.java?rev=774222&r1=774221&r2=774222&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/processor/RoutePerformanceTest.java
(original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/processor/RoutePerformanceTest.java
Wed May 13 06:03:10 2009
@@ -35,6 +35,10 @@
     private SimpleDataSet dataSet = new SimpleDataSet(size);
 
     public void testPerformance() throws Exception {
+        if (!canRunOnThisPlatform()) {
+            return;
+        }
+
         long start = System.currentTimeMillis();
 
         MockEndpoint endpoint = getMockEndpoint("mock:results");
@@ -48,6 +52,12 @@
         System.out.println("RoutePerformanceTest: Sent: " + size + " Took: " + delta + "
ms");
     }
 
+    private boolean canRunOnThisPlatform() {
+        String os = System.getProperty("os.name");
+        // HP-UX is just to slow to run this test
+        return !os.toLowerCase().contains("hp-ux");
+    }
+
     @Override
     protected Context createJndiContext() throws Exception {
         Map<String, Object> headers = new HashMap<String, Object>();



Mime
View raw message