Author: joehni
Date: Wed Aug 19 07:46:37 2009
New Revision: 805690
URL: http://svn.apache.org/viewvc?rev=805690&view=rev
Log:
Use defaults if system properties are not set.
Modified:
commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/AbstractVfsTestCase.java
Modified:
commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/AbstractVfsTestCase.java
URL:
http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/AbstractVfsTestCase.java?rev=805690&r1=805689&r2=805690&view=diff
==============================================================================
---
commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/AbstractVfsTestCase.java
(original)
+++
commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/AbstractVfsTestCase.java
Wed Aug 19 07:46:37 2009
@@ -116,13 +116,13 @@
public static String getTestDirectory()
{
- return System.getProperty("test.basedir");
+ return System.getProperty("test.basedir",
"target/test-classes/test-data");
}
- public static String getResourceTestDirectory()
- {
- return System.getProperty("test.basedir.res");
- }
+ public static String getResourceTestDirectory()
+ {
+ return System.getProperty("test.basedir.res", "test-data");
+ }
/**
* Locates a test directory, creating it if it does not exist.