소스 검색

Fixed FileUtilsTests, used wrong path separator (worked only on *nix)

Luca Cavanna 12 년 전
부모
커밋
fffa6a21dc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/test/java/org/elasticsearch/test/rest/support/FileUtils.java

+ 1 - 1
src/test/java/org/elasticsearch/test/rest/support/FileUtils.java

@@ -81,7 +81,7 @@ public final class FileUtils {
         URL resource = findResource(path, optionalFileSuffix);
         if (resource == null) {
             //try within classpath with optional prefix: /rest-spec/test (or /rest-test/api) is optional
-            String newPath = optionalPathPrefix + File.separator + path;
+            String newPath = optionalPathPrefix + "/" + path;
             resource = findResource(newPath, optionalFileSuffix);
             if (resource == null) {
                 //if it wasn't on classpath we look outside ouf the classpath