This is an automated email from the ASF dual-hosted git repository. janbednar pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push: new a9fe500 CAMEL-15478: Fix api component archetype a9fe500 is described below commit a9fe50073dd22ed518bafab465358690c706d793 Author: bedlaj <m...@janbednar.eu> AuthorDate: Sat Sep 19 20:05:28 2020 +0200 CAMEL-15478: Fix api component archetype --- .../main/resources/archetype-resources/__artifactId__-component/pom.xml | 2 +- .../__artifactId__-component/src/main/java/__name__Configuration.java | 2 +- .../src/test/java/Abstract__name__TestSupport.java | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/archetypes/camel-archetype-api-component/src/main/resources/archetype-resources/__artifactId__-component/pom.xml b/archetypes/camel-archetype-api-component/src/main/resources/archetype-resources/__artifactId__-component/pom.xml index 519ef25..12df6648 100644 --- a/archetypes/camel-archetype-api-component/src/main/resources/archetype-resources/__artifactId__-component/pom.xml +++ b/archetypes/camel-archetype-api-component/src/main/resources/archetype-resources/__artifactId__-component/pom.xml @@ -114,7 +114,7 @@ <api> <apiName>hello</apiName> <proxyClass>${package}.api.${name}Hello</proxyClass> - <fromJavasource /> + <fromJavasource /> </api> </apis> <!-- Specify global values for all APIs here, these are overridden at API level diff --git a/archetypes/camel-archetype-api-component/src/main/resources/archetype-resources/__artifactId__-component/src/main/java/__name__Configuration.java b/archetypes/camel-archetype-api-component/src/main/resources/archetype-resources/__artifactId__-component/src/main/java/__name__Configuration.java index 8f6f010..5c0de53 100644 --- a/archetypes/camel-archetype-api-component/src/main/resources/archetype-resources/__artifactId__-component/src/main/java/__name__Configuration.java +++ b/archetypes/camel-archetype-api-component/src/main/resources/archetype-resources/__artifactId__-component/src/main/java/__name__Configuration.java @@ -27,7 +27,7 @@ import org.apache.camel.spi.UriParams; apiMethods = { @ApiMethod(methodName = "greetMe", signatures={"String greetMe(String name)"}), @ApiMethod(methodName = "greetUs", signatures={"String greetUs(String name1, String name2)"}), - @ApiMethod(methodName = "sayHi", signatures={"String greetHi()"})}, + @ApiMethod(methodName = "sayHi", signatures={"String sayHi()"})}, aliases = {}) @UriParams @Configurer diff --git a/archetypes/camel-archetype-api-component/src/main/resources/archetype-resources/__artifactId__-component/src/test/java/Abstract__name__TestSupport.java b/archetypes/camel-archetype-api-component/src/main/resources/archetype-resources/__artifactId__-component/src/test/java/Abstract__name__TestSupport.java index 2269bf1..1440f3a 100644 --- a/archetypes/camel-archetype-api-component/src/main/resources/archetype-resources/__artifactId__-component/src/test/java/Abstract__name__TestSupport.java +++ b/archetypes/camel-archetype-api-component/src/main/resources/archetype-resources/__artifactId__-component/src/test/java/Abstract__name__TestSupport.java @@ -26,10 +26,12 @@ import org.apache.camel.CamelContext; import org.apache.camel.CamelExecutionException; import org.apache.camel.test.junit5.CamelTestSupport; import org.apache.camel.support.IntrospectionSupport; +import org.junit.jupiter.api.TestInstance; /** * Abstract base class for ${name} Integration tests generated by Camel API component maven plugin. */ +@TestInstance(TestInstance.Lifecycle.PER_CLASS) public class Abstract${name}TestSupport extends CamelTestSupport { private static final String TEST_OPTIONS_PROPERTIES = "/test-options.properties";