File tree 4 files changed +7
-7
lines changed
openapi-processor-core/src/testInt/kotlin/io/openapiprocessor/core 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ class CompileExpectedSpec: StringSpec({
87
87
88
88
var expected = itemsReader.read(sourcePath, "outputs.yaml").items
89
89
expected = expected.filter { ! it.endsWith("properties") }
90
- val expectedFileNames = expected.map { it.replaceFirst("<model>", "model/ ${testSet.modelType}") }
90
+ val expectedFileNames = expected.map { it.replaceFirst("<model>", "_ ${testSet.modelType}_ ") }
91
91
expectedFileNames.forEach {
92
92
compilePaths.add(Path .of("src/testInt/resources${sourcePath}/$it"))
93
93
}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ class ProcessorEndToEndJimfsSpec: StringSpec({
26
26
val test = Test (testSet, testFiles)
27
27
28
28
TestSetRunner (test, testSet)
29
- .runOnCustomFileSystem ()
29
+ .run ()
30
30
.shouldBeTrue()
31
31
}
32
32
}
Original file line number Diff line number Diff line change @@ -90,15 +90,15 @@ class ProcessorEndToEndRemoteSpec: StringSpec({
90
90
val generatedPath = Path .of (folder.canonicalPath).resolve (pkg)
91
91
92
92
val expectedFiles = getExpectedFiles(sourcePath, "outputs")
93
- val expectedFileNames = resolveModelFiles(expectedFiles, "model")
94
93
val generatedFiles = Collector .collectPaths (generatedPath)
95
94
95
+ val expectedFileNames = expectedFiles.map { it.replaceFirst("<model>/", "") }
96
96
generatedFiles.shouldContainAll(expectedFileNames)
97
97
98
98
var success = true
99
99
expectedFiles.forEach {
100
- val expected = getExpectedFile(resolveModelFile("$expectedPath/$it", "model/default "))
101
- val generated = generatedPath.resolve (resolveModelFile(it, "model "))
100
+ val expected = getExpectedFile(resolveModelFile("$expectedPath/$it", "_default_ "))
101
+ val generated = generatedPath.resolve (resolveModelFile(it, ""))
102
102
103
103
val hasDiff = !Diff .printUnifiedDiff (expected, generated)
104
104
success = success && hasDiff
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import io.openapiprocessor.core.parser.ParserType.*
12
12
import io.openapiprocessor.test.*
13
13
14
14
/* *
15
- * run end to end integration test.
15
+ * run end-to- end integration test.
16
16
*/
17
17
class ProcessorEndToEndSpec : StringSpec ({
18
18
@@ -25,7 +25,7 @@ class ProcessorEndToEndSpec: StringSpec({
25
25
val test = Test (testSet, testFiles)
26
26
27
27
TestSetRunner (test, testSet)
28
- .runOnNativeFileSystem ()
28
+ .run ()
29
29
.shouldBeTrue()
30
30
}
31
31
}
You can’t perform that action at this time.
0 commit comments