jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r633455 - /jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/AbstractJCRTest.java
Date Tue, 04 Mar 2008 12:45:39 GMT
Author: mreutegg
Date: Tue Mar  4 04:45:38 2008
New Revision: 633455

URL: http://svn.apache.org/viewvc?rev=633455&view=rev
Log:
JCR-1451: Support jackrabbit.test.scale in jackrabbit-jcr-tests

Modified:
    jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/AbstractJCRTest.java

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/AbstractJCRTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/AbstractJCRTest.java?rev=633455&r1=633454&r2=633455&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/AbstractJCRTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/AbstractJCRTest.java
Tue Mar  4 04:45:38 2008
@@ -667,4 +667,15 @@
         s.save();
         return testRootNode;
     }
+
+    /**
+     * @return the test scale value.
+     */
+    protected static int getTestScale() {
+        try {
+            return Integer.parseInt(System.getProperty("jackrabbit.test.scale", "1"));
+        } catch (NumberFormatException e) {
+            return 1;
+        }
+    }
 }



Mime
View raw message