Gradle: test fixed, wrong interpretation of the FileUtil.getRelativePath(java.io.File, java.io.File) result when base dir is not exist

This commit is contained in:
Vladislav.Soroka
2017-08-22 12:26:36 +03:00
parent fd52a0c070
commit c40aff697f
@@ -182,7 +182,7 @@ public class ModuleExtendedModelBuilderImplTest extends AbstractModelBuilderTest
String path =
FileUtil.toCanonicalPath(FileUtil.getRelativePath(new File(testDir, moduleName), sourceDirectory.getDirectory()));
Assert.assertNotNull(path);
return path.substring(path.indexOf("/") + 1);
return path;
});
Collections.sort(list);
return list;