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 09:01:54 UTC
[camel] 02/04: 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.20.x
in repository https://gitbox.apache.org/repos/asf/camel.git
commit e77713f4f2de0adb58df51031ec99cadbb5d7d51
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 ff40a5c1fa1..2af481086fc 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
@@ -58,6 +58,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 {
@@ -96,6 +97,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);
@@ -105,6 +107,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);