We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 006ed69 commit 32e7284Copy full SHA for 32e7284
openapi-processor-test/src/main/groovy/io/openapiprocessor/test/TestFilesNative.groovy
@@ -63,7 +63,12 @@ class TestFilesNative implements TestFiles {
63
64
@Override
65
Path getSourcePath(TestSet testSet, String path) {
66
- return Paths.get(resource.getResourceUrl("/tests/${testSet.name}/${testSet.expected}/$path").toURI())
+ def testFile = "/tests/${testSet.name}/${testSet.expected}/$path"
67
+ def testFileResource = resource.getResourceUrl(testFile)
68
+ if (!testFileResource) {
69
+ println("ERROR: missing file '$testFile'!")
70
+ }
71
+ return Paths.get(testFileResource.toURI())
72
}
73
74
0 commit comments