Repository: camel Updated Branches: refs/heads/camel-2.16.x 30a9732f8 -> 35407f839 refs/heads/master 909b97cdc -> 444540c08
Updated generated POM and added generated tests Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/444540c0 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/444540c0 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/444540c0 Branch: refs/heads/master Commit: 444540c0887b77741981fedb8561911022f550d5 Parents: 909b97c Author: Quinn Stevenson <qu...@pronoia-solutions.com> Authored: Mon Jan 18 10:56:25 2016 -0700 Committer: Claus Ibsen <davscl...@apache.org> Committed: Tue Jan 19 09:08:06 2016 +0100 ---------------------------------------------------------------------- .../main/resources/archetype-resources/pom.xml | 47 +++++++++--------- .../OSGI-INF/blueprint/blueprint-bean.xml | 47 ++++++++++++++++++ .../OSGI-INF/blueprint/blueprint-service.xml | 38 +++++++++++++++ .../resources/OSGI-INF/blueprint/blueprint.xml | 39 --------------- ...BeanPropertiesOverrideFromFileRouteTest.java | 46 ++++++++++++++++++ ...BeanPropertiesOverrideFromTestRouteTest.java | 51 ++++++++++++++++++++ .../src/test/java/BlueprintBeanRouteTest.java | 40 +++++++++++++++ .../test/java/BlueprintServiceRouteTest.java | 49 +++++++++++++++++++ .../src/test/java/RouteTest.java | 40 --------------- .../src/test/resources/etc/HelloBean.cfg | 1 + 10 files changed, 295 insertions(+), 103 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/444540c0/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/pom.xml ---------------------------------------------------------------------- diff --git a/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/pom.xml b/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/pom.xml index d6050d4..c193558 100644 --- a/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/pom.xml +++ b/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/pom.xml @@ -29,44 +29,52 @@ <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> + <camel-version>${camel-version}</camel-version> + <slf4j-version>${slf4j-version}</slf4j-version> + <log4j-version>${log4j-version}</log4j-version> </properties> <dependencies> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-core</artifactId> - <version>${camel-version}</version> + <version>\${camel-version}</version> </dependency> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-blueprint</artifactId> - <version>${camel-version}</version> + <version>\${camel-version}</version> </dependency> - <!-- logging --> + <!-- Logging --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> - <version>${slf4j-version}</version> + <version>\${slf4j-version}</version> </dependency> + + <!-- Testing --> + <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-test-blueprint</artifactId> + <version>\${camel-version}</version> + <scope>test</scope> + </dependency> + + <!-- Test Logging --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> - <version>${slf4j-version}</version> + <version>\${slf4j-version}</version> + <scope>test</scope> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> - <version>${log4j-version}</version> - </dependency> - - <!-- Testing --> - <dependency> - <groupId>org.apache.camel</groupId> - <artifactId>camel-test-blueprint</artifactId> - <version>${camel-version}</version> + <version>\${log4j-version}</version> <scope>test</scope> </dependency> + </dependencies> <build> @@ -97,18 +105,9 @@ <artifactId>maven-bundle-plugin</artifactId> <version>${maven-bundle-plugin-version}</version> <extensions>true</extensions> - <executions> - <execution> - <id>bundle-manifest</id> - <phase>process-classes</phase> - <goals> - <goal>manifest</goal> - </goals> - </execution> - </executions> <configuration> <instructions> - <Bundle-SymbolicName>${artifactId}</Bundle-SymbolicName> + <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> <Private-Package>${package}.*</Private-Package> <Import-Package>*</Import-Package> </instructions> @@ -119,7 +118,7 @@ <plugin> <groupId>org.apache.camel</groupId> <artifactId>camel-maven-plugin</artifactId> - <version>${camel-version}</version> + <version>\${camel-version}</version> </plugin> </plugins> http://git-wip-us.apache.org/repos/asf/camel/blob/444540c0/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/blueprint/blueprint-bean.xml ---------------------------------------------------------------------- diff --git a/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/blueprint/blueprint-bean.xml b/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/blueprint/blueprint-bean.xml new file mode 100644 index 0000000..25eca07 --- /dev/null +++ b/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/blueprint/blueprint-bean.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8"?> +## ------------------------------------------------------------------------ +## Licensed to the Apache Software Foundation (ASF) under one or more +## contributor license agreements. See the NOTICE file distributed with +## this work for additional information regarding copyright ownership. +## The ASF licenses this file to You under the Apache License, Version 2.0 +## (the "License"); you may not use this file except in compliance with +## the License. You may obtain a copy of the License at +## +## http://www.apache.org/licenses/LICENSE-2.0 +## +## Unless required by applicable law or agreed to in writing, software +## distributed under the License is distributed on an "AS IS" BASIS, +## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +## See the License for the specific language governing permissions and +## limitations under the License. +## ------------------------------------------------------------------------ +<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0" + xsi:schemaLocation=" + http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd + http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd + http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0 http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.1.0.xsd"> + + <cm:property-placeholder persistent-id="HelloBean" update-strategy="reload"> + <cm:default-properties> + <cm:property name="greeting" value="Hi from Camel" /> + </cm:default-properties> + </cm:property-placeholder> + + <bean id="helloBean" class="${package}.HelloBean"> + <property name="say" value="${greeting}"/> + </bean> + + <camelContext id="blueprint-bean-context" xmlns="http://camel.apache.org/schema/blueprint"> + <route id="timerToLog"> + <from uri="timer:foo?period=5000"/> + <setBody> + <method ref="helloBean" method="hello"/> + </setBody> + <log message="The message contains ${body}"/> + <to uri="mock:result"/> + </route> + </camelContext> + +</blueprint> http://git-wip-us.apache.org/repos/asf/camel/blob/444540c0/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/blueprint/blueprint-service.xml ---------------------------------------------------------------------- diff --git a/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/blueprint/blueprint-service.xml b/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/blueprint/blueprint-service.xml new file mode 100644 index 0000000..22c6eeb --- /dev/null +++ b/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/blueprint/blueprint-service.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +## ------------------------------------------------------------------------ +## Licensed to the Apache Software Foundation (ASF) under one or more +## contributor license agreements. See the NOTICE file distributed with +## this work for additional information regarding copyright ownership. +## The ASF licenses this file to You under the Apache License, Version 2.0 +## (the "License"); you may not use this file except in compliance with +## the License. You may obtain a copy of the License at +## +## http://www.apache.org/licenses/LICENSE-2.0 +## +## Unless required by applicable law or agreed to in writing, software +## distributed under the License is distributed on an "AS IS" BASIS, +## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +## See the License for the specific language governing permissions and +## limitations under the License. +## ------------------------------------------------------------------------ +<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0" + xsi:schemaLocation=" + http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd + http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd"> + + <reference id="helloService" interface="${package}.Hello" /> + + <camelContext id="blueprint-service-context" xmlns="http://camel.apache.org/schema/blueprint"> + <route id="timerToLog"> + <from uri="timer:foo?period=5000"/> + <setBody> + <method ref="helloService" method="hello"/> + </setBody> + <log message="The message contains ${body}"/> + <to uri="mock:result"/> + </route> + </camelContext> + +</blueprint> http://git-wip-us.apache.org/repos/asf/camel/blob/444540c0/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/blueprint/blueprint.xml ---------------------------------------------------------------------- diff --git a/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/blueprint/blueprint.xml b/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/blueprint/blueprint.xml deleted file mode 100644 index ac20230..0000000 --- a/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/blueprint/blueprint.xml +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -## ------------------------------------------------------------------------ -## Licensed to the Apache Software Foundation (ASF) under one or more -## contributor license agreements. See the NOTICE file distributed with -## this work for additional information regarding copyright ownership. -## The ASF licenses this file to You under the Apache License, Version 2.0 -## (the "License"); you may not use this file except in compliance with -## the License. You may obtain a copy of the License at -## -## http://www.apache.org/licenses/LICENSE-2.0 -## -## Unless required by applicable law or agreed to in writing, software -## distributed under the License is distributed on an "AS IS" BASIS, -## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -## See the License for the specific language governing permissions and -## limitations under the License. -## ------------------------------------------------------------------------ -<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation=" - http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd - http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd"> - - <bean id="helloBean" class="${package}.HelloBean"> - <property name="say" value="Hi from Camel"/> - </bean> - - <camelContext xmlns="http://camel.apache.org/schema/blueprint"> - <route id="timerToLog"> - <from uri="timer:foo?period=5000"/> - <setBody> - <method ref="helloBean" method="hello"/> - </setBody> - <log message="The message contains ${body}"/> - <to uri="mock:result"/> - </route> - </camelContext> - -</blueprint> http://git-wip-us.apache.org/repos/asf/camel/blob/444540c0/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/test/java/BlueprintBeanPropertiesOverrideFromFileRouteTest.java ---------------------------------------------------------------------- diff --git a/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/test/java/BlueprintBeanPropertiesOverrideFromFileRouteTest.java b/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/test/java/BlueprintBeanPropertiesOverrideFromFileRouteTest.java new file mode 100644 index 0000000..7cf798f --- /dev/null +++ b/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/test/java/BlueprintBeanPropertiesOverrideFromFileRouteTest.java @@ -0,0 +1,46 @@ +## ------------------------------------------------------------------------ +## Licensed to the Apache Software Foundation (ASF) under one or more +## contributor license agreements. See the NOTICE file distributed with +## this work for additional information regarding copyright ownership. +## The ASF licenses this file to You under the Apache License, Version 2.0 +## (the "License"); you may not use this file except in compliance with +## the License. You may obtain a copy of the License at +## +## http://www.apache.org/licenses/LICENSE-2.0 +## +## Unless required by applicable law or agreed to in writing, software +## distributed under the License is distributed on an "AS IS" BASIS, +## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +## See the License for the specific language governing permissions and +## limitations under the License. +## ------------------------------------------------------------------------ +package ${package}; + +import org.apache.camel.test.blueprint.CamelBlueprintTestSupport; + +import org.junit.Test; + +public class BlueprintBeanPropertiesOverrideFromFileRouteTest extends CamelBlueprintTestSupport { + + @Override + protected String getBlueprintDescriptor() { + return "/OSGI-INF/blueprint/blueprint-bean.xml"; + } + + @Override + protected String[] loadConfigAdminConfigurationFile() { + // which .cfg file to use, and the name of the persistence-id + return new String[]{"src/test/resources/etc/HelloBean.cfg", "HelloBean"}; + } + + @Test + public void testRoute() throws Exception { + // the route is timer based, so every 5th second a message is send + // we should then expect at least one message + getMockEndpoint("mock:result").expectedMinimumMessageCount(1); + + // assert expectations + assertMockEndpointsSatisfied(); + } + +} http://git-wip-us.apache.org/repos/asf/camel/blob/444540c0/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/test/java/BlueprintBeanPropertiesOverrideFromTestRouteTest.java ---------------------------------------------------------------------- diff --git a/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/test/java/BlueprintBeanPropertiesOverrideFromTestRouteTest.java b/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/test/java/BlueprintBeanPropertiesOverrideFromTestRouteTest.java new file mode 100644 index 0000000..8620569 --- /dev/null +++ b/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/test/java/BlueprintBeanPropertiesOverrideFromTestRouteTest.java @@ -0,0 +1,51 @@ +## ------------------------------------------------------------------------ +## Licensed to the Apache Software Foundation (ASF) under one or more +## contributor license agreements. See the NOTICE file distributed with +## this work for additional information regarding copyright ownership. +## The ASF licenses this file to You under the Apache License, Version 2.0 +## (the "License"); you may not use this file except in compliance with +## the License. You may obtain a copy of the License at +## +## http://www.apache.org/licenses/LICENSE-2.0 +## +## Unless required by applicable law or agreed to in writing, software +## distributed under the License is distributed on an "AS IS" BASIS, +## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +## See the License for the specific language governing permissions and +## limitations under the License. +## ------------------------------------------------------------------------ +package ${package}; + +import java.util.Dictionary; + +import org.apache.camel.test.blueprint.CamelBlueprintTestSupport; + +import org.junit.Test; + +public class BlueprintBeanPropertiesOverrideFromTestRouteTest extends CamelBlueprintTestSupport { + + @Override + protected String getBlueprintDescriptor() { + return "/OSGI-INF/blueprint/blueprint-bean.xml"; + } + + @Override + protected String useOverridePropertiesWithConfigAdmin(Dictionary props) throws Exception { + // override / add extra properties + props.put("greeting", "Hello from test"); + + // return the persistence-id to use + return "HelloBean"; + } + + @Test + public void testRoute() throws Exception { + // the route is timer based, so every 5th second a message is send + // we should then expect at least one message + getMockEndpoint("mock:result").expectedMinimumMessageCount(1); + + // assert expectations + assertMockEndpointsSatisfied(); + } + +} http://git-wip-us.apache.org/repos/asf/camel/blob/444540c0/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/test/java/BlueprintBeanRouteTest.java ---------------------------------------------------------------------- diff --git a/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/test/java/BlueprintBeanRouteTest.java b/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/test/java/BlueprintBeanRouteTest.java new file mode 100644 index 0000000..59f0e68 --- /dev/null +++ b/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/test/java/BlueprintBeanRouteTest.java @@ -0,0 +1,40 @@ +## ------------------------------------------------------------------------ +## Licensed to the Apache Software Foundation (ASF) under one or more +## contributor license agreements. See the NOTICE file distributed with +## this work for additional information regarding copyright ownership. +## The ASF licenses this file to You under the Apache License, Version 2.0 +## (the "License"); you may not use this file except in compliance with +## the License. You may obtain a copy of the License at +## +## http://www.apache.org/licenses/LICENSE-2.0 +## +## Unless required by applicable law or agreed to in writing, software +## distributed under the License is distributed on an "AS IS" BASIS, +## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +## See the License for the specific language governing permissions and +## limitations under the License. +## ------------------------------------------------------------------------ +package ${package}; + +import org.apache.camel.test.blueprint.CamelBlueprintTestSupport; + +import org.junit.Test; + +public class BlueprintBeanRouteTest extends CamelBlueprintTestSupport { + + @Override + protected String getBlueprintDescriptor() { + return "/OSGI-INF/blueprint/blueprint-bean.xml"; + } + + @Test + public void testRoute() throws Exception { + // the route is timer based, so every 5th second a message is send + // we should then expect at least one message + getMockEndpoint("mock:result").expectedMinimumMessageCount(1); + + // assert expectations + assertMockEndpointsSatisfied(); + } + +} http://git-wip-us.apache.org/repos/asf/camel/blob/444540c0/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/test/java/BlueprintServiceRouteTest.java ---------------------------------------------------------------------- diff --git a/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/test/java/BlueprintServiceRouteTest.java b/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/test/java/BlueprintServiceRouteTest.java new file mode 100644 index 0000000..780cafe --- /dev/null +++ b/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/test/java/BlueprintServiceRouteTest.java @@ -0,0 +1,49 @@ +## ------------------------------------------------------------------------ +## Licensed to the Apache Software Foundation (ASF) under one or more +## contributor license agreements. See the NOTICE file distributed with +## this work for additional information regarding copyright ownership. +## The ASF licenses this file to You under the Apache License, Version 2.0 +## (the "License"); you may not use this file except in compliance with +## the License. You may obtain a copy of the License at +## +## http://www.apache.org/licenses/LICENSE-2.0 +## +## Unless required by applicable law or agreed to in writing, software +## distributed under the License is distributed on an "AS IS" BASIS, +## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +## See the License for the specific language governing permissions and +## limitations under the License. +## ------------------------------------------------------------------------ +package ${package}; + +import java.util.Dictionary; +import java.util.Map; + +import org.apache.camel.test.blueprint.CamelBlueprintTestSupport; +import org.apache.camel.util.KeyValueHolder; + +import org.junit.Test; + +public class BlueprintServiceRouteTest extends CamelBlueprintTestSupport { + + @Override + protected String getBlueprintDescriptor() { + return "/OSGI-INF/blueprint/blueprint-service.xml"; + } + + @Override + protected void addServicesOnStartup(Map<String, KeyValueHolder<Object, Dictionary>> services) { + services.put( Hello.class.getName(), asService(new HelloBean(), null, null)); + } + + @Test + public void testRoute() throws Exception { + // the route is timer based, so every 5th second a message is send + // we should then expect at least one message + getMockEndpoint("mock:result").expectedMinimumMessageCount(1); + + // assert expectations + assertMockEndpointsSatisfied(); + } + +} http://git-wip-us.apache.org/repos/asf/camel/blob/444540c0/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/test/java/RouteTest.java ---------------------------------------------------------------------- diff --git a/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/test/java/RouteTest.java b/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/test/java/RouteTest.java deleted file mode 100644 index 3315e5c..0000000 --- a/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/test/java/RouteTest.java +++ /dev/null @@ -1,40 +0,0 @@ -## ------------------------------------------------------------------------ -## Licensed to the Apache Software Foundation (ASF) under one or more -## contributor license agreements. See the NOTICE file distributed with -## this work for additional information regarding copyright ownership. -## The ASF licenses this file to You under the Apache License, Version 2.0 -## (the "License"); you may not use this file except in compliance with -## the License. You may obtain a copy of the License at -## -## http://www.apache.org/licenses/LICENSE-2.0 -## -## Unless required by applicable law or agreed to in writing, software -## distributed under the License is distributed on an "AS IS" BASIS, -## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -## See the License for the specific language governing permissions and -## limitations under the License. -## ------------------------------------------------------------------------ -package ${package}; - -import org.apache.camel.test.blueprint.CamelBlueprintTestSupport; - -import org.junit.Test; - -public class RouteTest extends CamelBlueprintTestSupport { - - @Override - protected String getBlueprintDescriptor() { - return "/OSGI-INF/blueprint/blueprint.xml"; - } - - @Test - public void testRoute() throws Exception { - // the route is timer based, so every 5th second a message is send - // we should then expect at least one message - getMockEndpoint("mock:result").expectedMinimumMessageCount(1); - - // assert expectations - assertMockEndpointsSatisfied(); - } - -} http://git-wip-us.apache.org/repos/asf/camel/blob/444540c0/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/test/resources/etc/HelloBean.cfg ---------------------------------------------------------------------- diff --git a/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/test/resources/etc/HelloBean.cfg b/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/test/resources/etc/HelloBean.cfg new file mode 100644 index 0000000..c452e1e --- /dev/null +++ b/tooling/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/src/test/resources/etc/HelloBean.cfg @@ -0,0 +1 @@ +greeting=Hello from file \ No newline at end of file