Skip to content

Commit

Permalink
Move AOT tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwiseman committed Sep 15, 2024
1 parent cb5a087 commit fb4bc8f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@
<!--
This plugin is used to generate AOT metadata during tests so that it can be
compared against those in META-INF/native-image/org.kohsuke/github-api/*.
The tests are located in src/test/java/org.kohsuke.aot
The tests are start with the name "Aot..."
-->
<plugin>
<groupId>org.springframework.boot</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.kohsuke.aot;
package org.kohsuke.github;

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
Expand Down Expand Up @@ -77,6 +77,7 @@ private Stream<String> readAotConfigToStreamOfClassNames(String reflectionConfig
.map(jsonNode -> jsonNode.get("name"))
.map(JsonNode::toString)
.map(reflectConfigEntryClassName -> reflectConfigEntryClassName.replace("\"", ""))
.filter(x -> x.contains("org.kohsuke.github"));
.filter(x -> x.contains("org.kohsuke.github"))
.filter(x -> !x.contains("org.kohsuke.github.AotTest"));
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.kohsuke.aot;
package org.kohsuke.github;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
Expand All @@ -8,7 +8,7 @@
* required for test purpose.
*/
@SpringBootApplication
public class AotTestApplication {
class AotTestApplication {

/**
* Runs a spring boot application to generate AOT hints
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.kohsuke.aot;
package org.kohsuke.github;

import org.jetbrains.annotations.NotNull;
import org.springframework.aot.hint.MemberCategory;
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/META-INF/spring/aot.factories
Original file line number Diff line number Diff line change
@@ -1 +1 @@
org.springframework.aot.hint.RuntimeHintsRegistrar=org.kohsuke.aot.AotTestRuntimeHints
org.springframework.aot.hint.RuntimeHintsRegistrar=org.kohsuke.github.AotTestRuntimeHints

0 comments on commit fb4bc8f

Please sign in to comment.