diff --git a/README.adoc b/README.adoc index 7e40e89dd..075bc2b94 100644 --- a/README.adoc +++ b/README.adoc @@ -60,10 +60,6 @@ Number of Examples: 72 (2 deprecated) | link:console/README.adoc[Console] (console) | Beginner | An example that reads input from the console -| link:csimple/README.adoc[Csimple] (csimple) | Beginner | *deprecated* Shows using compiled simple language (deprecated) - -| link:csimple-joor/README.adoc[Csimple Joor] (csimple-joor) | Beginner | *deprecated* (deprecated) Shows using compiled simple language with jOOR compiler - | link:spring/README.adoc[Spring] (spring) | Beginner | An example showing how to work with Camel and Spring | link:timer/README.adoc[Timer] (timer) | Beginner | An example showing how to work with Camel Timer component diff --git a/csimple-joor/README.adoc b/csimple-joor/README.adoc deleted file mode 100644 index e5d40d654..000000000 --- a/csimple-joor/README.adoc +++ /dev/null @@ -1,36 +0,0 @@ -== Camel Example Compiled Simple using jooR compiler - -This example shows using csimple (compiled simple) scripting language in your Camel routes. - -When Camel bootstrap then each csimple scripts is compiled using the JVM compiler via the jOOR compiler library. The compilation happens once during startup. - -This makes the csimple language native Java compiled, with no runtime overhead. -The generated source code are in memory only and compiled at runtime. This means debugging the generated source code is not possible. See the other csimple example which uses a Maven plugin to detect csimple scripts from the source code, to generate Java source code at build time; which can be debugged. - -=== Build - -You will need to compile this example first: - -[source,sh] ----- -$ mvn compile ----- - -=== Run - -To run the example execute - -[source,sh] ----- -$ mvn camel:run ----- - -=== Help and contributions - -If you hit any problem using Camel or have some feedback, then please -https://camel.apache.org/community/support/[let us know]. - -We also love contributors, so -https://camel.apache.org/community/contributing/[get involved] :-) - -The Camel riders! diff --git a/csimple-joor/pom.xml b/csimple-joor/pom.xml deleted file mode 100644 index 35dc8f127..000000000 --- a/csimple-joor/pom.xml +++ /dev/null @@ -1,116 +0,0 @@ - - - - - 4.0.0 - - - org.apache.camel.example - camel-examples - 4.23.0-SNAPSHOT - - - camel-example-csimple-joor - jar - Camel :: Example :: Compiled Simple jOOR (deprecated) - (deprecated) Shows using compiled simple language with jOOR compiler - - - Beginner - - - - - - - org.apache.camel - camel-bom - ${camel.version} - pom - import - - - - - - - - org.apache.camel - camel-main - - - - - org.apache.camel - camel-csimple-joor - - - - - org.apache.camel - camel-bean - - - org.apache.camel - camel-timer - - - org.apache.camel - camel-log - - - - - org.apache.logging.log4j - log4j-core - ${log4j2-version} - runtime - - - org.apache.logging.log4j - log4j-slf4j2-impl - ${log4j2-version} - runtime - - - - - org.apache.camel - camel-test-main-junit6 - test - - - - - - - - org.apache.camel - camel-maven-plugin - ${camel.version} - - org.apache.camel.example.MyApplication - - - - - - diff --git a/csimple-joor/src/main/java/org/apache/camel/example/MyApplication.java b/csimple-joor/src/main/java/org/apache/camel/example/MyApplication.java deleted file mode 100644 index 31197dc0c..000000000 --- a/csimple-joor/src/main/java/org/apache/camel/example/MyApplication.java +++ /dev/null @@ -1,36 +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 org.apache.camel.example; - -import org.apache.camel.main.Main; - -/** - * Main class that boot the Camel application - */ -public final class MyApplication { - - private MyApplication() { - } - - public static void main(String[] args) throws Exception { - // use Camels Main class - Main main = new Main(MyApplication.class); - // now keep the application running until the JVM is terminated (ctrl + c or sigterm) - main.run(args); - } - -} diff --git a/csimple-joor/src/main/java/org/apache/camel/example/MyRouteBuilder.java b/csimple-joor/src/main/java/org/apache/camel/example/MyRouteBuilder.java deleted file mode 100644 index 11498adc5..000000000 --- a/csimple-joor/src/main/java/org/apache/camel/example/MyRouteBuilder.java +++ /dev/null @@ -1,35 +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 org.apache.camel.example; - -import org.apache.camel.builder.RouteBuilder; - -public class MyRouteBuilder extends RouteBuilder { - - @Override - public void configure() throws Exception { - from("timer:foo?period={{myPeriod}}") - .transform(csimple("${random(20)}")) - .choice() - .when(csimple("${bodyAs(int)} > 10")) - .log("high ${body}") - .when(csimple("${bodyAs(int)} > 5")) - .log("med ${body}") - .otherwise() - .log("low ${body}"); - } -} diff --git a/csimple-joor/src/main/resources/application.properties b/csimple-joor/src/main/resources/application.properties deleted file mode 100644 index d7e35e536..000000000 --- a/csimple-joor/src/main/resources/application.properties +++ /dev/null @@ -1,30 +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. -## --------------------------------------------------------------------------- - -# here you can configure options on camel main -# https://camel.apache.org/components/next/others/main.html -camel.main.name = MyCSimpleJOORCamel - -# enable tracing -### camel.main.tracing = true - -# bean introspection to log reflection based configuration -camel.main.beanIntrospectionExtendedStatistics=true -camel.main.beanIntrospectionLoggingLevel=INFO - -# properties used in the route -myPeriod = 1000 diff --git a/csimple-joor/src/main/resources/log4j2.properties b/csimple-joor/src/main/resources/log4j2.properties deleted file mode 100644 index d9f0508a6..000000000 --- a/csimple-joor/src/main/resources/log4j2.properties +++ /dev/null @@ -1,23 +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. -## --------------------------------------------------------------------------- - -appender.out.type = Console -appender.out.name = out -appender.out.layout.type = PatternLayout -appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n -rootLogger.level = INFO -rootLogger.appenderRef.out.ref = out diff --git a/csimple-joor/src/test/java/org/apache/camel/example/CSimpleJOORTest.java b/csimple-joor/src/test/java/org/apache/camel/example/CSimpleJOORTest.java deleted file mode 100644 index d0c7a9e15..000000000 --- a/csimple-joor/src/test/java/org/apache/camel/example/CSimpleJOORTest.java +++ /dev/null @@ -1,56 +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 org.apache.camel.example; - -import org.apache.camel.builder.NotifyBuilder; -import org.apache.camel.main.MainConfigurationProperties; -import org.apache.camel.test.junit6.CamelContextConfiguration; -import org.apache.camel.test.main.junit6.CamelMainTestSupport; -import org.junit.jupiter.api.Test; - -import java.util.Properties; -import java.util.concurrent.TimeUnit; - -import static org.apache.camel.util.PropertiesHelper.asProperties; -import static org.junit.jupiter.api.Assertions.assertTrue; - -/** - * A unit test checking that the compiled simple expressions using jooR compiler are evaluated as expected. - */ -class CSimpleJOORTest extends CamelMainTestSupport { - - @Override - public void configureContext(CamelContextConfiguration camelContextConfiguration) { - super.configureContext(camelContextConfiguration); - Properties overridenProperties = asProperties("myPeriod", Integer.toString(500)); - camelContextConfiguration.withUseOverridePropertiesWithPropertiesComponent(overridenProperties); - } - - @Test - void should_be_evaluated() { - NotifyBuilder notify = new NotifyBuilder(context).from("timer:*").whenCompleted(5).create(); - - assertTrue( - notify.matches(5, TimeUnit.SECONDS), "5 messages should be completed" - ); - } - - @Override - protected void configure(MainConfigurationProperties configuration) { - configuration.addRoutesBuilder(MyRouteBuilder.class); - } -} diff --git a/csimple/README.adoc b/csimple/README.adoc deleted file mode 100644 index 22ac6c580..000000000 --- a/csimple/README.adoc +++ /dev/null @@ -1,37 +0,0 @@ -== Camel Example Compiled Simple - -This example shows using csimple (compiled simple) scripting language in your Camel routes. - -A maven plugin (configured in `pom.xml`) detects the csimple scripts from the project source code and then generate Java source code in `src/generated/java` folder which then gets compiled with the regular Java compiler. - -This makes the csimple language native Java compiled, with no runtime overhead. -The generated source code in `src/generated/java` is just regular Java source code and you can therefore debug the code. You can try this by loading the project into a Java IDE, and then launch the application in debug mode from the `MyApplication` class. You can then set breakpoints in the generated source code in the `src/generated/java` folder. - - -=== Build - -You will need to compile this example first: - -[source,sh] ----- -$ mvn compile ----- - -=== Run - -To run the example execute - -[source,sh] ----- -$ mvn camel:run ----- - -=== Help and contributions - -If you hit any problem using Camel or have some feedback, then please -https://camel.apache.org/community/support/[let us know]. - -We also love contributors, so -https://camel.apache.org/community/contributing/[get involved] :-) - -The Camel riders! diff --git a/csimple/pom.xml b/csimple/pom.xml deleted file mode 100644 index 89f75256e..000000000 --- a/csimple/pom.xml +++ /dev/null @@ -1,148 +0,0 @@ - - - - - 4.0.0 - - - org.apache.camel.example - camel-examples - 4.23.0-SNAPSHOT - - - camel-example-csimple - jar - Camel :: Example :: Compiled Simple (deprecated) - Shows using compiled simple language (deprecated) - - - Beginner - - - - - - - org.apache.camel - camel-bom - ${camel.version} - pom - import - - - - - - - - org.apache.camel - camel-main - - - - org.apache.camel - camel-bean - - - org.apache.camel - camel-timer - - - org.apache.camel - camel-log - - - - - org.apache.logging.log4j - log4j-core - ${log4j2-version} - runtime - - - org.apache.logging.log4j - log4j-slf4j2-impl - ${log4j2-version} - runtime - - - - - org.apache.camel - camel-test-main-junit6 - test - - - - - - - - org.apache.camel - camel-maven-plugin - ${camel.version} - - org.apache.camel.example.MyApplication - - - - - org.apache.camel - camel-csimple-maven-plugin - ${camel.version} - - - generate - - generate - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.6.1 - - - generate-sources - - add-source - add-resource - - - - src/generated/java - - - - src/generated/resources - - - - - - - - - - diff --git a/csimple/src/generated/java/org/apache/camel/example/CSimpleScript1.java b/csimple/src/generated/java/org/apache/camel/example/CSimpleScript1.java deleted file mode 100644 index 22bd0108f..000000000 --- a/csimple/src/generated/java/org/apache/camel/example/CSimpleScript1.java +++ /dev/null @@ -1,36 +0,0 @@ -package org.apache.camel.example; - -import java.util.*; -import java.util.concurrent.*; -import java.util.stream.*; - -import org.apache.camel.*; -import org.apache.camel.util.*; -import org.apache.camel.spi.*; -import static org.apache.camel.language.csimple.CSimpleHelper.*; - - -public class CSimpleScript1 extends org.apache.camel.language.csimple.CSimpleSupport { - - Language bean; - UuidGenerator uuid; - - public CSimpleScript1() { - } - - @Override - public boolean isPredicate() { - return false; - } - - @Override - public String getText() { - return "${random(20)}"; - } - - @Override - public Object evaluate(CamelContext context, Exchange exchange, Message message, Object body) throws Exception { - return random(exchange, 0, 20); - } -} - diff --git a/csimple/src/generated/java/org/apache/camel/example/CSimpleScript2.java b/csimple/src/generated/java/org/apache/camel/example/CSimpleScript2.java deleted file mode 100644 index 87643ec3d..000000000 --- a/csimple/src/generated/java/org/apache/camel/example/CSimpleScript2.java +++ /dev/null @@ -1,36 +0,0 @@ -package org.apache.camel.example; - -import java.util.*; -import java.util.concurrent.*; -import java.util.stream.*; - -import org.apache.camel.*; -import org.apache.camel.util.*; -import org.apache.camel.spi.*; -import static org.apache.camel.language.csimple.CSimpleHelper.*; - - -public class CSimpleScript2 extends org.apache.camel.language.csimple.CSimpleSupport { - - Language bean; - UuidGenerator uuid; - - public CSimpleScript2() { - } - - @Override - public boolean isPredicate() { - return true; - } - - @Override - public String getText() { - return "${body} > 10"; - } - - @Override - public Object evaluate(CamelContext context, Exchange exchange, Message message, Object body) throws Exception { - return isGreaterThan(exchange, body, 10); - } -} - diff --git a/csimple/src/generated/java/org/apache/camel/example/CSimpleScript3.java b/csimple/src/generated/java/org/apache/camel/example/CSimpleScript3.java deleted file mode 100644 index f46971449..000000000 --- a/csimple/src/generated/java/org/apache/camel/example/CSimpleScript3.java +++ /dev/null @@ -1,36 +0,0 @@ -package org.apache.camel.example; - -import java.util.*; -import java.util.concurrent.*; -import java.util.stream.*; - -import org.apache.camel.*; -import org.apache.camel.util.*; -import org.apache.camel.spi.*; -import static org.apache.camel.language.csimple.CSimpleHelper.*; - - -public class CSimpleScript3 extends org.apache.camel.language.csimple.CSimpleSupport { - - Language bean; - UuidGenerator uuid; - - public CSimpleScript3() { - } - - @Override - public boolean isPredicate() { - return true; - } - - @Override - public String getText() { - return "${body} > 5"; - } - - @Override - public Object evaluate(CamelContext context, Exchange exchange, Message message, Object body) throws Exception { - return isGreaterThan(exchange, body, 5); - } -} - diff --git a/csimple/src/generated/resources/META-INF/services/org/apache/camel/csimple.properties b/csimple/src/generated/resources/META-INF/services/org/apache/camel/csimple.properties deleted file mode 100644 index f76904b29..000000000 --- a/csimple/src/generated/resources/META-INF/services/org/apache/camel/csimple.properties +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by camel build tools - do NOT edit this file! -org.apache.camel.example.CSimpleScript1 -org.apache.camel.example.CSimpleScript2 -org.apache.camel.example.CSimpleScript3 diff --git a/csimple/src/main/java/org/apache/camel/example/MyApplication.java b/csimple/src/main/java/org/apache/camel/example/MyApplication.java deleted file mode 100644 index 31197dc0c..000000000 --- a/csimple/src/main/java/org/apache/camel/example/MyApplication.java +++ /dev/null @@ -1,36 +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 org.apache.camel.example; - -import org.apache.camel.main.Main; - -/** - * Main class that boot the Camel application - */ -public final class MyApplication { - - private MyApplication() { - } - - public static void main(String[] args) throws Exception { - // use Camels Main class - Main main = new Main(MyApplication.class); - // now keep the application running until the JVM is terminated (ctrl + c or sigterm) - main.run(args); - } - -} diff --git a/csimple/src/main/java/org/apache/camel/example/MyRouteBuilder.java b/csimple/src/main/java/org/apache/camel/example/MyRouteBuilder.java deleted file mode 100644 index dfff5fb57..000000000 --- a/csimple/src/main/java/org/apache/camel/example/MyRouteBuilder.java +++ /dev/null @@ -1,35 +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 org.apache.camel.example; - -import org.apache.camel.builder.RouteBuilder; - -public class MyRouteBuilder extends RouteBuilder { - - @Override - public void configure() throws Exception { - from("timer:foo?period={{myPeriod}}") - .transform().csimple("${random(20)}") - .choice() - .when().csimple("${body} > 10") - .log("high ${body}") - .when().csimple("${body} > 5") - .log("med ${body}") - .otherwise() - .log("low ${body}"); - } -} diff --git a/csimple/src/main/resources/application.properties b/csimple/src/main/resources/application.properties deleted file mode 100644 index 47a881dc1..000000000 --- a/csimple/src/main/resources/application.properties +++ /dev/null @@ -1,30 +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. -## --------------------------------------------------------------------------- - -# here you can configure options on camel main -# https://camel.apache.org/components/next/others/main.html -camel.main.name = MyCSimpleCamel - -# enable tracing -### camel.main.tracing = true - -# bean introspection to log reflection based configuration -camel.main.beanIntrospectionExtendedStatistics=true -camel.main.beanIntrospectionLoggingLevel=INFO - -# properties used in the route -myPeriod = 1000 diff --git a/csimple/src/main/resources/log4j2.properties b/csimple/src/main/resources/log4j2.properties deleted file mode 100644 index d9f0508a6..000000000 --- a/csimple/src/main/resources/log4j2.properties +++ /dev/null @@ -1,23 +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. -## --------------------------------------------------------------------------- - -appender.out.type = Console -appender.out.name = out -appender.out.layout.type = PatternLayout -appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n -rootLogger.level = INFO -rootLogger.appenderRef.out.ref = out diff --git a/csimple/src/test/java/org/apache/camel/example/CSimpleTest.java b/csimple/src/test/java/org/apache/camel/example/CSimpleTest.java deleted file mode 100644 index d8d2fdbb5..000000000 --- a/csimple/src/test/java/org/apache/camel/example/CSimpleTest.java +++ /dev/null @@ -1,56 +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 org.apache.camel.example; - -import org.apache.camel.builder.NotifyBuilder; -import org.apache.camel.main.MainConfigurationProperties; -import org.apache.camel.test.junit6.CamelContextConfiguration; -import org.apache.camel.test.main.junit6.CamelMainTestSupport; -import org.junit.jupiter.api.Test; - -import java.util.Properties; -import java.util.concurrent.TimeUnit; - -import static org.apache.camel.util.PropertiesHelper.asProperties; -import static org.junit.jupiter.api.Assertions.assertTrue; - -/** - * A unit test checking that the compiled simple expressions are evaluated as expected. - */ -class CSimpleTest extends CamelMainTestSupport { - - @Override - public void configureContext(CamelContextConfiguration camelContextConfiguration) { - super.configureContext(camelContextConfiguration); - Properties overridenProperties = asProperties("myPeriod", Integer.toString(500)); - camelContextConfiguration.withUseOverridePropertiesWithPropertiesComponent(overridenProperties); - } - - @Test - void should_be_evaluated() { - NotifyBuilder notify = new NotifyBuilder(context).from("timer:*").whenCompleted(5).create(); - - assertTrue( - notify.matches(5, TimeUnit.SECONDS), "5 messages should be completed" - ); - } - - @Override - protected void configure(MainConfigurationProperties configuration) { - configuration.addRoutesBuilder(MyRouteBuilder.class); - } -} diff --git a/pom.xml b/pom.xml index 895ab3505..3c943585c 100644 --- a/pom.xml +++ b/pom.xml @@ -91,8 +91,6 @@ cassandra-kubernetes console couchbase-log - csimple - csimple-joor debezium-eventhubs-blob flight-recorder ftp