You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2012/11/01 07:02:13 UTC

svn commit: r1404471 - in /camel/branches/camel-2.10.x: ./ components/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java

Author: davsclaus
Date: Thu Nov  1 06:02:13 2012
New Revision: 1404471

URL: http://svn.apache.org/viewvc?rev=1404471&view=rev
Log:
Added isJava17 method into TestSupport

Modified:
    camel/branches/camel-2.10.x/   (props changed)
    camel/branches/camel-2.10.x/components/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java

Propchange: camel/branches/camel-2.10.x/
------------------------------------------------------------------------------
  Merged /camel/trunk:r1403186

Propchange: camel/branches/camel-2.10.x/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: camel/branches/camel-2.10.x/components/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.10.x/components/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java?rev=1404471&r1=1404470&r2=1404471&view=diff
==============================================================================
--- camel/branches/camel-2.10.x/components/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java (original)
+++ camel/branches/camel-2.10.x/components/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java Thu Nov  1 06:02:13 2012
@@ -545,6 +545,16 @@ public abstract class TestSupport extend
         String javaVersion = System.getProperty("java.version").toLowerCase(Locale.US);
         return javaVersion.startsWith("1.6");
     }
+    
+    /**
+     * Is this Java 1.7
+     *
+     * @return <tt>true</tt> if its Java 1.7, <tt>false</tt> if its not (for example Java 1.7 or better)
+     */
+    public static boolean isJava17() {
+        String javaVersion = System.getProperty("java.version").toLowerCase(Locale.US);
+        return javaVersion.startsWith("1.7");
+    }
 
     /**
      * Gets the current test method name