File tree 1 file changed +4
-3
lines changed
openapi-processor-core/src/test/kotlin/io/openapiprocessor/core/processor/mapping/v2
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,8 @@ class AntlrParserSpec: StringSpec({
224
224
mapping.annotationParameters[" value" ]!!.import shouldBe " io.oap.Foo"
225
225
}
226
226
227
- " reports parsing error" {
227
+ // because of the simple "name" rule, it won't error on this.
228
+ " reports parsing error" .config(false) {
228
229
val source = """ SourceType =X io.oap.TargetType"""
229
230
230
231
val ex = shouldThrow<MappingException > {
@@ -356,8 +357,8 @@ class AntlrParserSpec: StringSpec({
356
357
val source = " name"
357
358
358
359
val mapping = parseMapping(source)
359
- mapping.kind shouldBe Mapping .Kind .MAP
360
- mapping.sourceType shouldBe " name "
360
+ mapping.kind shouldBe Mapping .Kind .TYPE
361
+ mapping.sourceType shouldBe source
361
362
mapping.targetType shouldBe null
362
363
}
363
364
})
You can’t perform that action at this time.
0 commit comments