Skip to content

Commit 73bca02

Browse files
committed
fix test compilation (#115)
1 parent 437a9ff commit 73bca02

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ class CompileExpectedSpec: StringSpec({
8181
compilePaths.add(Path.of("src/testInt/resources/compile/oap/AnnotationB.java"))
8282
compilePaths.add(Path.of("src/testInt/resources/compile/oap/AnnotationC.java"))
8383
compilePaths.add(Path.of("src/testInt/resources/compile/oap/ParamAnnotation.java"))
84+
compilePaths.add(Path.of("src/testInt/resources/compile/oap/Generated.java"))
8485
compilePaths.add(Path.of("src/testInt/resources/compile/reactor/Mono.java"))
8586
compilePaths.add(Path.of("src/testInt/resources/compile/reactor/Flux.java"))
8687
compilePaths.add(Path.of("src/testInt/resources/compile/spring/ResponseEntity.java"))
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
package io.openapiprocessor.support;
2+
3+
import java.lang.annotation.*;
4+
import static java.lang.annotation.ElementType.*;
5+
import static java.lang.annotation.RetentionPolicy.*;
6+
7+
@Documented
8+
@Retention(CLASS)
9+
@Target({TYPE, METHOD})
10+
@Generated(value = "openapi-processor-core", version = "test")
11+
public @interface Generated {
12+
/**
13+
* The name of the source code generator, i.e. openapi-processor-*.
14+
*
15+
* @return name of the generator
16+
*/
17+
String value();
18+
19+
/**
20+
* @return version of the generator
21+
*/
22+
String version();
23+
24+
/**
25+
* The date & time of generation (ISO 8601) or "-" if no date was set.
26+
*
27+
* @return date of generation
28+
*/
29+
String date() default "-";
30+
31+
/**
32+
* The url of the generator.
33+
*
34+
* @return url of generator
35+
*/
36+
String url() default "https://openapiprocessor.io";
37+
}

0 commit comments

Comments
 (0)