Author: scabanovich
Date: 2010-08-11 07:49:26 -0400 (Wed, 11 Aug 2010)
New Revision: 24040
Added:
trunk/esb/tests/org.jboss.tools.esb.core.test/.settings/
trunk/esb/tests/org.jboss.tools.esb.core.test/projects/Test/esb-1.3/
trunk/esb/tests/org.jboss.tools.esb.core.test/projects/Test/esb-1.3/jboss-esb-camel.xml
Modified:
trunk/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools/esb/core/test/ESBModelTest.java
Log:
https://jira.jboss.org/browse/JBIDE-6615
Added:
trunk/esb/tests/org.jboss.tools.esb.core.test/projects/Test/esb-1.3/jboss-esb-camel.xml
===================================================================
---
trunk/esb/tests/org.jboss.tools.esb.core.test/projects/Test/esb-1.3/jboss-esb-camel.xml
(rev 0)
+++
trunk/esb/tests/org.jboss.tools.esb.core.test/projects/Test/esb-1.3/jboss-esb-camel.xml 2010-08-11
11:49:26 UTC (rev 24040)
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<jbossesb
+
xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc...
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://anonsvn.labs.jboss.com/labs/jbossesb/trun...
http://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/etc/schem...
+ <providers>
+ <camel-provider name="camel">
+ <camel-bus async="false" busid="11"
from-uri="www.lenta.ru" timeout="123">
+ <from uri="www.yandex.ru"/>
+ </camel-bus>
+ </camel-provider>
+ </providers>
+ <services>
+ <service category="c" description="d" name="s">
+ <listeners>
+ <camel-gateway async="true" busidref="11"
from-uri="http://from.org"
+ name="camel" timeout="1000">
+ <property name="p2" value="v2"/>
+ <property name="p1" value="v1"/>
+ <from uri="http://from.ru"/>
+ </camel-gateway>
+ <jms-listener busidref="1" clientId="ci"
+ durableSubscriptionName="dsn" name="jms"/>
+ </listeners>
+ </service>
+ </services>
+</jbossesb>
Property changes on:
trunk/esb/tests/org.jboss.tools.esb.core.test/projects/Test/esb-1.3/jboss-esb-camel.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified:
trunk/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools/esb/core/test/ESBModelTest.java
===================================================================
---
trunk/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools/esb/core/test/ESBModelTest.java 2010-08-11
11:48:43 UTC (rev 24039)
+++
trunk/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools/esb/core/test/ESBModelTest.java 2010-08-11
11:49:26 UTC (rev 24040)
@@ -335,6 +335,41 @@
assertTrue(errorList.toString(), errorList.length() == 0);
}
+ public void testCamelExample() {
+ XModelObject object = getFileObject("esb-1.3",
"jboss-esb-camel.xml", ESBConstants.ENT_ESB_FILE_130);
+
+ StringBuffer errorList = new StringBuffer();
+
+ String camelProviderPath = "Providers/camel";
+ String[][] camelProviderAttrValues = {
+ {"name", "camel"},
+ };
+ checkAttributes(object, camelProviderPath, camelProviderAttrValues, errorList);
+
+ String camelBusPath = camelProviderPath + "/11";
+ String[][] camelBusAttrValues = {
+ {"async", "false"},
+ {"timeout", "123"},
+ };
+ checkAttributes(object, camelBusPath, camelBusAttrValues, errorList);
+
+ String fromPath = camelBusPath + "/www.yandex.ru";
+ String[][] fromAttrValues = {
+ {"uri", "www.yandex.ru"},
+ };
+ checkAttributes(object, fromPath, fromAttrValues, errorList);
+
+ String camelGatewayPath = "Services/s/Listeners/camel";
+ String[][] camelGatewayAttrValues = {
+ {"channel id ref", "11"},
+ {"async", "true"},
+ {"timeout", "1000"},
+ };
+ checkAttributes(object, camelGatewayPath, camelGatewayAttrValues, errorList);
+
+ assertTrue(errorList.toString(), errorList.length() == 0);
+ }
+
XModelObject getFileObject(String parentPath, String xmlname) {
return getFileObject(parentPath, xmlname, ESBConstants.ENT_ESB_FILE_101);
}