Skip to content

Commit 2946011

Browse files
committed
fix for running int tests on windows
1 parent e169a0f commit 2946011

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

src/main/groovy/com/github/hauner/openapi/test/ProcessorTestBase.groovy

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,12 @@ abstract class ProcessorTestBase {
176176
}
177177

178178
/**
179-
* collect paths in file system
179+
* collect paths in file system.
180+
*
181+
* will convert all paths to use "/" as path separator
180182
*/
181183
protected static List<String> collectPaths(Path source) {
182-
def files = []
184+
List<String> files = []
183185

184186
def found = Files.walk (source)
185187
.filter ({ f ->
@@ -191,7 +193,9 @@ abstract class ProcessorTestBase {
191193
})
192194
found.close ()
193195

194-
return files
196+
files.collect {
197+
it.replace ("\\\\", "/")
198+
}
195199
}
196200

197201
/**

0 commit comments

Comments
 (0)