Skip to content

Commit 9c96abe

Browse files
committed
Added Test. Fixes #1442
1 parent e835c2c commit 9c96abe

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed

pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,4 +340,14 @@
340340
</snapshots>
341341
</repository>
342342
</repositories>
343+
<pluginRepositories>
344+
<pluginRepository>
345+
<id>spring-releases</id>
346+
<name>Spring Releases</name>
347+
<url>https://repo.spring.io/release</url>
348+
<snapshots>
349+
<enabled>false</enabled>
350+
</snapshots>
351+
</pluginRepository>
352+
</pluginRepositories>
343353
</project>

springdoc-openapi-native/pom.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@
2929
<groupId>org.springframework.experimental</groupId>
3030
<artifactId>spring-native</artifactId>
3131
</dependency>
32+
<!-- springdoc-core -->
33+
<dependency>
34+
<groupId>org.springdoc</groupId>
35+
<artifactId>springdoc-openapi-webmvc-core</artifactId>
36+
<version>${project.version}</version>
37+
<scope>test</scope>
38+
</dependency>
3239
</dependencies>
3340
<build>
3441
<resources>
@@ -49,6 +56,25 @@
4956
</archive>
5057
</configuration>
5158
</plugin>
59+
<plugin>
60+
<groupId>org.springframework.experimental</groupId>
61+
<artifactId>spring-aot-maven-plugin</artifactId>
62+
<version>${spring-native.version}</version>
63+
<executions>
64+
<execution>
65+
<id>test-generate</id>
66+
<goals>
67+
<goal>test-generate</goal>
68+
</goals>
69+
</execution>
70+
<execution>
71+
<id>generate</id>
72+
<goals>
73+
<goal>generate</goal>
74+
</goals>
75+
</execution>
76+
</executions>
77+
</plugin>
5278
</plugins>
5379
</build>
5480

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package test.org.springdoc.api.app1;
2+
3+
import org.junit.jupiter.api.Test;
4+
5+
import org.springframework.boot.SpringBootConfiguration;
6+
import org.springframework.boot.test.context.SpringBootTest;
7+
8+
@SpringBootTest
9+
class TestApplicationTests {
10+
11+
@SpringBootConfiguration
12+
static class SpringDocTestApp {}
13+
14+
@Test
15+
void contextLoads() {}
16+
17+
}

0 commit comments

Comments
 (0)