This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 30fd09efa14 test(dsl): Adding on-completion test (#7574)
30fd09efa14 is described below

commit 30fd09efa1498bb4b916657841902f218891136c
Author: MarĂ­a Arias de Reyna <ariasdere...@redhat.com>
AuthorDate: Mon May 9 15:45:06 2022 +0200

    test(dsl): Adding on-completion test (#7574)
---
 .../org/apache/camel/dsl/yaml/RouteConfigurationTest.groovy   | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git 
a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/test/groovy/org/apache/camel/dsl/yaml/RouteConfigurationTest.groovy
 
b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/test/groovy/org/apache/camel/dsl/yaml/RouteConfigurationTest.groovy
index bba80b12c80..3b8d026a5a5 100644
--- 
a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/test/groovy/org/apache/camel/dsl/yaml/RouteConfigurationTest.groovy
+++ 
b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/test/groovy/org/apache/camel/dsl/yaml/RouteConfigurationTest.groovy
@@ -92,7 +92,12 @@ class RouteConfigurationTest extends YamlTestSupport {
                         steps:
                           - transform:
                               constant: "Activated"
-                          - to: "mock:on-exception"  
+                          - to: "mock:on-exception"
+                    - on-completion:
+                        steps:
+                          - transform:
+                              constant: "Completed"
+                          - to: "mock:on-completion"
                 - from:
                     uri: "direct:start"
                     steps:
@@ -104,6 +109,10 @@ class RouteConfigurationTest extends YamlTestSupport {
             expectedBodiesReceived 'Activated'
         }
 
+        withMock('mock:on-completion') {
+            expectedBodiesReceived 'Completed'
+        }
+
         when:
         context.start()
 

Reply via email to