Java Code Examples for org.apache.camel.model.RouteDefinition#getDescription()
The following examples show how to use
org.apache.camel.model.RouteDefinition#getDescription() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PreserveCommentTest.java From fabric8-forge with Apache License 2.0 | 5 votes |
@Test public void testCommentsBeforeRoutePreserved() throws Exception { XmlModel x = assertRoundTrip("src/test/resources/commentBeforeRoute.xml", 2); RouteDefinition route1 = x.getRouteDefinitionList().get(1); assertEquals("route4", route1.getId()); DescriptionDefinition desc = route1.getDescription(); assertNotNull(desc); assertEquals("route4 description\ncomment about route4", desc.getText()); }
Example 2
Source File: PreserveCommentTest.java From fabric8-forge with Apache License 2.0 | 5 votes |
@Test public void testCommentsInRoutePreserved() throws Exception { XmlModel x = assertRoundTrip("src/test/resources/commentInRoute.xml", 1); RouteDefinition route1 = x.getRouteDefinitionList().get(0); DescriptionDefinition desc = route1.getDescription(); assertNotNull(desc); assertEquals("route3 comment", desc.getText()); }
Example 3
Source File: PreserveCommentTest.java From fabric8-forge with Apache License 2.0 | 5 votes |
@Test public void testCommentsInRouteWithDescriptionPreserved() throws Exception { XmlModel x = assertRoundTrip("src/test/resources/commentInRouteWithDescription.xml", 1); RouteDefinition route1 = x.getRouteDefinitionList().get(0); DescriptionDefinition desc = route1.getDescription(); assertNotNull(desc); assertEquals("previous description\nnew comment added to previous one", desc.getText()); }