Skip to content

Commit

Permalink
Add Simple and Bean tests to the foundation group apache#2362
Browse files Browse the repository at this point in the history
  • Loading branch information
ppalaga committed May 17, 2021
1 parent 2308527 commit 2b8c810
Show file tree
Hide file tree
Showing 48 changed files with 38 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-integration-tests</artifactId>
<artifactId>camel-quarkus-integration-tests-foundation</artifactId>
<version>1.9.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -38,10 +39,6 @@
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-direct</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-log</artifactId>
</dependency>

<dependency>
<groupId>io.quarkus</groupId>
Expand Down Expand Up @@ -101,19 +98,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-log-deployment</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>

</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,30 +69,23 @@ public void configure() {
// after we have splitted and handled each message we want to send a single combined
// response back to the original caller, so we let this bean build it for us
// this bean will receive the result of the aggregate strategy: MyOrderStrategy
.process(stateless(MyOrderService.class.getName(), "buildCombinedResponse"))
// log out
.to("log:out");
.process(stateless(MyOrderService.class.getName(), "buildCombinedResponse"));

from("direct:named")
.to("bean:namedBean?method=hello")
.to("log:named");
.to("bean:namedBean?method=hello");

from("direct:method")
.bean(MyBean.class, "sayHello")
.to("log:named");
.bean(MyBean.class, "sayHello");

from("direct:handler")
.to("bean:withHandler")
.to("log:named");
.to("bean:withHandler");

from("direct:handlerOnProxy")
.to("bean:withHandlerOnProxy")
.to("log:named");
.to("bean:withHandlerOnProxy");

from("direct:with-language-param-bindings")
.routeId("wlpb-route-31wp")
.to("bean:withLanguageParamBindingsBean")
.to("log:withLanguageParamBindings");
.to("bean:withLanguageParamBindingsBean");

from("direct:methodWithExchangeArg")
.to("bean:namedBean");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,10 @@ public void configure() {
*/
from("direct:increment")
.id("counter")
.setBody(exchange -> counter.increment())
.to("log:counter");
.setBody(exchange -> counter.increment());
from("direct:config-property")
.id("config-property")
.setBody(exchange -> "myFooValue = " + myFooValue)
.to("log:config-property");
.setBody(exchange -> "myFooValue = " + myFooValue);
}

public Counter getCounter() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ quarkus.camel.native.reflection.exclude-patterns = org.apache.commons.lang3.tupl
# Quarkus :: Camel
#
quarkus.camel.runtime-catalog.languages = false
quarkus.camel.native.resources.include-patterns = include-pattern-folder/*
quarkus.camel.native.resources.include-patterns = mysimple.txt,include-pattern-folder/*
quarkus.camel.native.resources.exclude-patterns = exclude-pattern-folder/*,include-pattern-folder/excluded.txt
2 changes: 2 additions & 0 deletions integration-test-groups/foundation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@

<modules>
<!-- extensions a..z; do not remove this comment, it is important when sorting via mvn process-resources -Pformat -->
<module>bean</module>
<module>core</module>
<module>core-annotations</module>
<module>customized-log-component</module>
<module>direct</module>
<module>log</module>
<module>simple</module>
<module>timer</module>
<module>type-converter</module>
</modules>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-integration-tests</artifactId>
<artifactId>camel-quarkus-integration-tests-foundation</artifactId>
<version>1.9.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
## See the License for the specific language governing permissions and
## limitations under the License.
## ---------------------------------------------------------------------------
quarkus.camel.native.resources.include-patterns = *.txt
quarkus.camel.native.resources.include-patterns = mysimple.txt,include-pattern-folder/*
22 changes: 22 additions & 0 deletions integration-tests/foundation-grouped/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy-jsonb</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-bean</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-core</artifactId>
Expand Down Expand Up @@ -96,6 +100,11 @@
<artifactId>quarkus-junit5</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit5-mockito</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>rest-assured</artifactId>
Expand All @@ -108,6 +117,19 @@
</dependency>

<!-- The following dependencies guarantee that this module is built after them. You can update them by running `mvn process-resources -Pformat -N` from the source tree root directory -->
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-bean-deployment</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-core-deployment</artifactId>
Expand Down
2 changes: 0 additions & 2 deletions integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
<module>aws2-grouped</module>
<module>azure-grouped</module>
<module>base64</module>
<module>bean</module>
<module>bean-validator</module>
<module>bindy</module>
<module>box</module>
Expand Down Expand Up @@ -188,7 +187,6 @@
<module>servicenow</module>
<module>servlet</module>
<module>shiro</module>
<module>simple</module>
<module>slack</module>
<module>smallrye-reactive-messaging</module>
<module>soap</module>
Expand Down
2 changes: 0 additions & 2 deletions tooling/scripts/test-categories.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ group-02:
- oaipmh
- pubnub
- protobuf
- simple
- smallrye-reactive-messaging
- solr
- sql
Expand Down Expand Up @@ -86,7 +85,6 @@ group-05:
- xmlsecurity
- xstream
group-06:
- bean
- exec
- file
- foundation
Expand Down

0 comments on commit 2b8c810

Please sign in to comment.