You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by sa...@apache.org on 2018/08/08 20:53:41 UTC
[geode] branch develop updated: GEODE-5212: Fix TestUtil to return
path (#2281)
This is an automated email from the ASF dual-hosted git repository.
sai_boorlagadda pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/develop by this push:
new 931b5bb GEODE-5212: Fix TestUtil to return path (#2281)
931b5bb is described below
commit 931b5bb5567f8784fedc4be02447d89d4c1e2895
Author: Sai Boorlagadda <sa...@gmail.com>
AuthorDate: Wed Aug 8 13:53:35 2018 -0700
GEODE-5212: Fix TestUtil to return path (#2281)
When a classpath resource is looked up the path
retrieved from the resource URI can be null in which
case it creates a file from copying the resource. This
temp file path is already a good one to be returned.
---
geode-junit/src/main/java/org/apache/geode/util/test/TestUtil.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/geode-junit/src/main/java/org/apache/geode/util/test/TestUtil.java b/geode-junit/src/main/java/org/apache/geode/util/test/TestUtil.java
index bbebc4f..025a1ee 100644
--- a/geode-junit/src/main/java/org/apache/geode/util/test/TestUtil.java
+++ b/geode-junit/src/main/java/org/apache/geode/util/test/TestUtil.java
@@ -63,7 +63,7 @@ public class TestUtil {
File tmpFile = File.createTempFile(filename, null);
tmpFile.deleteOnExit();
FileUtils.copyURLToFile(resource, tmpFile);
- return compatibleWithWindows(tmpFile.getAbsolutePath());
+ return tmpFile.getAbsolutePath();
}
return compatibleWithWindows(path);
} catch (URISyntaxException | IOException e) {