jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shash...@apache.org
Subject svn commit: r1677920 - in /jackrabbit/trunk/jackrabbit-data/src/test: java/org/apache/jackrabbit/core/data/ resources/
Date Wed, 06 May 2015 04:21:13 GMT
Author: shashank
Date: Wed May  6 04:21:12 2015
New Revision: 1677920

URL: http://svn.apache.org/r1677920
Log:
JCR-3878 Fix test case failure in jackrabbit-data

fixed. remove the dependency on drive Y:

Modified:
    jackrabbit/trunk/jackrabbit-data/src/test/java/org/apache/jackrabbit/core/data/TestCachingFDS.java
    jackrabbit/trunk/jackrabbit-data/src/test/java/org/apache/jackrabbit/core/data/TestCachingFDSCacheOff.java
    jackrabbit/trunk/jackrabbit-data/src/test/java/org/apache/jackrabbit/core/data/TestFileDataStore.java
    jackrabbit/trunk/jackrabbit-data/src/test/resources/fs.properties

Modified: jackrabbit/trunk/jackrabbit-data/src/test/java/org/apache/jackrabbit/core/data/TestCachingFDS.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-data/src/test/java/org/apache/jackrabbit/core/data/TestCachingFDS.java?rev=1677920&r1=1677919&r2=1677920&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-data/src/test/java/org/apache/jackrabbit/core/data/TestCachingFDS.java
(original)
+++ jackrabbit/trunk/jackrabbit-data/src/test/java/org/apache/jackrabbit/core/data/TestCachingFDS.java
Wed May  6 04:21:12 2015
@@ -32,7 +32,7 @@ public class TestCachingFDS extends Test
         CachingFDS cacheFDS = new CachingFDS();
         Properties props = loadProperties("/fs.properties");
         String pathValue = props.getProperty("path");
-        if (props != null && !"".equals(pathValue.trim())) {
+        if (pathValue != null && !"".equals(pathValue.trim())) {
             path = pathValue + "/cachingFds" + "-"
                 + String.valueOf(randomGen.nextInt(100000)) + "-"
                 + String.valueOf(randomGen.nextInt(100000));

Modified: jackrabbit/trunk/jackrabbit-data/src/test/java/org/apache/jackrabbit/core/data/TestCachingFDSCacheOff.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-data/src/test/java/org/apache/jackrabbit/core/data/TestCachingFDSCacheOff.java?rev=1677920&r1=1677919&r2=1677920&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-data/src/test/java/org/apache/jackrabbit/core/data/TestCachingFDSCacheOff.java
(original)
+++ jackrabbit/trunk/jackrabbit-data/src/test/java/org/apache/jackrabbit/core/data/TestCachingFDSCacheOff.java
Wed May  6 04:21:12 2015
@@ -32,7 +32,7 @@ public class TestCachingFDSCacheOff exte
         CachingFDS cacheFDS = new CachingFDS();
         Properties props = loadProperties("/fs.properties");
         String pathValue = props.getProperty("path");
-        if (props != null && !"".equals(pathValue.trim())) {
+        if (pathValue != null && !"".equals(pathValue.trim())) {
             path = pathValue + "/cachingFds" + "-"
                 + String.valueOf(randomGen.nextInt(100000)) + "-"
                 + String.valueOf(randomGen.nextInt(100000));

Modified: jackrabbit/trunk/jackrabbit-data/src/test/java/org/apache/jackrabbit/core/data/TestFileDataStore.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-data/src/test/java/org/apache/jackrabbit/core/data/TestFileDataStore.java?rev=1677920&r1=1677919&r2=1677920&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-data/src/test/java/org/apache/jackrabbit/core/data/TestFileDataStore.java
(original)
+++ jackrabbit/trunk/jackrabbit-data/src/test/java/org/apache/jackrabbit/core/data/TestFileDataStore.java
Wed May  6 04:21:12 2015
@@ -40,7 +40,7 @@ public class TestFileDataStore extends T
         FileDataStore fds = new FileDataStore();
         Properties props = loadProperties("/fs.properties");
         String pathValue = props.getProperty("path");
-        if (props != null && !"".equals(pathValue.trim())) {
+        if (pathValue != null && !"".equals(pathValue.trim())) {
             path = pathValue + "/fds" + "-"
                 + String.valueOf(randomGen.nextInt(100000)) + "-"
                 + String.valueOf(randomGen.nextInt(100000));

Modified: jackrabbit/trunk/jackrabbit-data/src/test/resources/fs.properties
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-data/src/test/resources/fs.properties?rev=1677920&r1=1677919&r2=1677920&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-data/src/test/resources/fs.properties (original)
+++ jackrabbit/trunk/jackrabbit-data/src/test/resources/fs.properties Wed May  6 04:21:12
2015
@@ -1 +1 @@
-path=Y:/ds
+



Mime
View raw message