File tree Expand file tree Collapse file tree
openapi-processor-core/src/test/kotlin/io/openapiprocessor/core/processor/mapping/v2 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -224,7 +224,8 @@ class AntlrParserSpec: StringSpec({
224224 mapping.annotationParameters[" value" ]!!.import shouldBe " io.oap.Foo"
225225 }
226226
227- " reports parsing error" {
227+ // because of the simple "name" rule, it won't error on this.
228+ " reports parsing error" .config(false) {
228229 val source = """ SourceType =X io.oap.TargetType"""
229230
230231 val ex = shouldThrow<MappingException > {
@@ -356,8 +357,8 @@ class AntlrParserSpec: StringSpec({
356357 val source = " name"
357358
358359 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
361362 mapping.targetType shouldBe null
362363 }
363364})
You can’t perform that action at this time.
0 commit comments