You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/07/15 08:28:45 UTC
[camel] 02/02: CAMEL-19607: camel-core - Fix error handler redeliveryPolicyRef
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-3.x
in repository https://gitbox.apache.org/repos/asf/camel.git
commit fb4de0466de2242c7f3cfbd677ef5f2eadb03178
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sat Jul 15 10:28:32 2023 +0200
CAMEL-19607: camel-core - Fix error handler redeliveryPolicyRef
---
.../src/test/java/org/apache/camel/xml/in/ModelParserTest.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/core/camel-xml-io/src/test/java/org/apache/camel/xml/in/ModelParserTest.java b/core/camel-xml-io/src/test/java/org/apache/camel/xml/in/ModelParserTest.java
index 796cc2fa458..602888f71de 100644
--- a/core/camel-xml-io/src/test/java/org/apache/camel/xml/in/ModelParserTest.java
+++ b/core/camel-xml-io/src/test/java/org/apache/camel/xml/in/ModelParserTest.java
@@ -60,6 +60,7 @@ public class ModelParserTest {
= Arrays.asList("barRest.xml", "simpleRest.xml", "simpleRestToD.xml", "restAllowedValues.xml");
private static final List<String> TEMPLATE_XMLS = Arrays.asList("barTemplate.xml");
private static final List<String> TEMPLATED_ROUTE_XMLS = Arrays.asList("barTemplatedRoute.xml");
+ private static final List<String> ROUTE_CONFIGURATION_XMLS = Arrays.asList("errorHandlerConfiguration.xml", "errorHandlerConfigurationRedeliveryPolicyRef.xml");
@Test
public void testNoNamespace() throws Exception {
@@ -98,6 +99,7 @@ public class ModelParserTest {
boolean isRest = REST_XMLS.contains(path.getFileName().toString());
boolean isTemplate = TEMPLATE_XMLS.contains(path.getFileName().toString());
boolean isTemplatedRoute = TEMPLATED_ROUTE_XMLS.contains(path.getFileName().toString());
+ boolean isConfiguration = ROUTE_CONFIGURATION_XMLS.contains(path.getFileName().toString());
if (isRest) {
RestsDefinition rests = parser.parseRestsDefinition().orElse(null);
assertNotNull(rests);
@@ -107,6 +109,9 @@ public class ModelParserTest {
} else if (isTemplatedRoute) {
TemplatedRoutesDefinition templatedRoutes = parser.parseTemplatedRoutesDefinition().orElse(null);
assertNotNull(templatedRoutes);
+ } else if (isConfiguration) {
+ RouteConfigurationsDefinition configurations = parser.parseRouteConfigurationsDefinition().orElse(null);
+ assertNotNull(configurations);
} else {
RoutesDefinition routes = parser.parseRoutesDefinition().orElse(null);
assertNotNull(routes);