Skip to content

Commit f2256ee

Browse files
committed
1 parent a2fd97f commit f2256ee

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

openapi-processor-core/src/testInt/kotlin/io/openapiprocessor/core/TestFrameworkAnnotations.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,18 @@ package io.openapiprocessor.core
77

88
import io.openapiprocessor.core.framework.FrameworkAnnotations
99
import io.openapiprocessor.core.model.Annotation
10+
import io.openapiprocessor.core.model.EndpointResponseStatus
1011
import io.openapiprocessor.core.model.parameters.Parameter
1112
import io.openapiprocessor.core.parser.HttpMethod
1213

1314
val MAPPING = Annotation("annotation.Mapping")
1415
val PARAMETER = Annotation("annotation.Parameter")
16+
val STATUS = Annotation("annotation.Status")
1517

1618
/**
1719
* simple [io.openapiprocessor.core.framework.FrameworkAnnotations] implementation for testing.
20+
*
21+
* this also exists as a groovy version
1822
*/
1923
class TestFrameworkAnnotations: FrameworkAnnotations {
2024

@@ -25,4 +29,8 @@ class TestFrameworkAnnotations: FrameworkAnnotations {
2529
override fun getAnnotation(parameter: Parameter): Annotation {
2630
return PARAMETER
2731
}
32+
33+
override fun getAnnotation(status: EndpointResponseStatus): Annotation {
34+
return STATUS
35+
}
2836
}

0 commit comments

Comments
 (0)