File tree Expand file tree Collapse file tree
openapi-processor-core/src/testInt/resources/compile Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ package io .oap ;
2+
3+ import java .lang .annotation .Documented ;
4+ import java .lang .annotation .Retention ;
5+ import java .lang .annotation .Target ;
6+
7+ import static java .lang .annotation .ElementType .*;
8+ import static java .lang .annotation .RetentionPolicy .CLASS ;
9+
10+ @ Documented
11+ @ Retention (CLASS )
12+ @ Target ({FIELD })
13+ public @interface Annotation {
14+ Class <?> value ();
15+ }
Original file line number Diff line number Diff line change 1+ package io .oap ;
2+
3+ public class Bar {}
Original file line number Diff line number Diff line change 1+ package generated .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+ }
Original file line number Diff line number Diff line change 1+ package annotation ;
2+
3+ import java .lang .annotation .Documented ;
4+ import java .lang .annotation .Retention ;
5+ import java .lang .annotation .Target ;
6+
7+ import static java .lang .annotation .ElementType .METHOD ;
8+ import static java .lang .annotation .RetentionPolicy .CLASS ;
9+
10+ @ Documented
11+ @ Retention (CLASS )
12+ @ Target ({METHOD })
13+ public @interface Mapping {
14+ String value ();
15+ }
Original file line number Diff line number Diff line change 1+ == compile test
2+
3+ `CompileExpectedSpec` compiles all expected files of the integration tests. This folder contains dummy implementations of classes & annotations the expected files depend on.
You can’t perform that action at this time.
0 commit comments