Skip to content

Commit

Permalink
fix unit tests (#277)
Browse files Browse the repository at this point in the history
Co-authored-by: David Polania <davidpolaniaac@users.noreply.github.com>
  • Loading branch information
davidpolaniaac and davidpolaniaac authored Jun 30, 2022
1 parent 3eae02e commit 334de64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/co/com/bancolombia/utils/FileUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ public static String toRelative(String path) {
if (path.startsWith("./")) {
return path;
}
if (path.startsWith("/")) {
if (path.startsWith(".\\")) {
return path;
}
if (Paths.get(path).isAbsolute()) {
return path;
}
return "./" + path;
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/co/com/bancolombia/utils/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ public static List<String> getAllFilesWithExtension(boolean isKotlin) throws IOE
.filter(f -> f.endsWith(extension) && !f.contains(".git"))
.filter(f -> !f.contains(".git"))
.filter(f -> !f.contains("settings.gradle"))
.map(f -> f.replace("\\", "/"))
.filter(f -> !f.contains("/bin"))
.filter(f -> !f.contains("/resources"))
.filter(f -> !f.contains("/examples-ca"))
.map(p -> p.replace("build/functionalTest/", ""))
Expand Down

0 comments on commit 334de64

Please sign in to comment.