Author: ningjiang
Date: Mon Oct 29 07:59:41 2012
New Revision: 1403186

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

Modified:
    
camel/trunk/components/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java

Modified: 
camel/trunk/components/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/components/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java?rev=1403186&r1=1403185&r2=1403186&view=diff
==============================================================================
--- 
camel/trunk/components/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java
 (original)
+++ 
camel/trunk/components/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java
 Mon Oct 29 07:59:41 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


Reply via email to