Skip to content

Commit fb4bc8f

Browse files
committed
Move AOT tests
1 parent cb5a087 commit fb4bc8f

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@
226226
<!--
227227
This plugin is used to generate AOT metadata during tests so that it can be
228228
compared against those in META-INF/native-image/org.kohsuke/github-api/*.
229-
The tests are located in src/test/java/org.kohsuke.aot
229+
The tests are start with the name "Aot..."
230230
-->
231231
<plugin>
232232
<groupId>org.springframework.boot</groupId>

src/test/java/org/kohsuke/aot/AotIntegrationTest.java renamed to src/test/java/org/kohsuke/github/AotIntegrationTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.kohsuke.aot;
1+
package org.kohsuke.github;
22

33
import com.fasterxml.jackson.databind.JsonNode;
44
import com.fasterxml.jackson.databind.ObjectMapper;
@@ -77,6 +77,7 @@ private Stream<String> readAotConfigToStreamOfClassNames(String reflectionConfig
7777
.map(jsonNode -> jsonNode.get("name"))
7878
.map(JsonNode::toString)
7979
.map(reflectConfigEntryClassName -> reflectConfigEntryClassName.replace("\"", ""))
80-
.filter(x -> x.contains("org.kohsuke.github"));
80+
.filter(x -> x.contains("org.kohsuke.github"))
81+
.filter(x -> !x.contains("org.kohsuke.github.AotTest"));
8182
}
8283
}

src/test/java/org/kohsuke/aot/AotTestApplication.java renamed to src/test/java/org/kohsuke/github/AotTestApplication.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.kohsuke.aot;
1+
package org.kohsuke.github;
22

33
import org.springframework.boot.autoconfigure.SpringBootApplication;
44
import org.springframework.boot.builder.SpringApplicationBuilder;
@@ -8,7 +8,7 @@
88
* required for test purpose.
99
*/
1010
@SpringBootApplication
11-
public class AotTestApplication {
11+
class AotTestApplication {
1212

1313
/**
1414
* Runs a spring boot application to generate AOT hints

src/test/java/org/kohsuke/aot/AotTestRuntimeHints.java renamed to src/test/java/org/kohsuke/github/AotTestRuntimeHints.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.kohsuke.aot;
1+
package org.kohsuke.github;
22

33
import org.jetbrains.annotations.NotNull;
44
import org.springframework.aot.hint.MemberCategory;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
org.springframework.aot.hint.RuntimeHintsRegistrar=org.kohsuke.aot.AotTestRuntimeHints
1+
org.springframework.aot.hint.RuntimeHintsRegistrar=org.kohsuke.github.AotTestRuntimeHints

0 commit comments

Comments
 (0)