[jbosstools-commits] JBoss Tools SVN: r21950 - branches/jbosstools-3.1.x/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools/esb/core/test.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Fri May 7 07:09:42 EDT 2010
Author: scabanovich
Date: 2010-05-07 07:09:41 -0400 (Fri, 07 May 2010)
New Revision: 21950
Modified:
branches/jbosstools-3.1.x/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools/esb/core/test/ESBModelTest.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-6260
Modified: branches/jbosstools-3.1.x/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools/esb/core/test/ESBModelTest.java
===================================================================
--- branches/jbosstools-3.1.x/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools/esb/core/test/ESBModelTest.java 2010-05-07 10:20:47 UTC (rev 21949)
+++ branches/jbosstools-3.1.x/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools/esb/core/test/ESBModelTest.java 2010-05-07 11:09:41 UTC (rev 21950)
@@ -250,13 +250,39 @@
assertTrue(errorList.toString(), errorList.length() == 0);
}
+ public void testNotifiers() {
+ XModelObject object = getFileObject("esb-1.2", "jboss-esb-notifiers.xml", ESBConstants.ENT_ESB_FILE_120);
+
+ StringBuffer errorList = new StringBuffer();
+
+ String sendResponseNotifierPath = "Services/s/Actions/SendResponseNotifier";
+
+ String[][] sendResponseNotifierAttrValues = {
+ {"name", "SendResponseNotifier"},
+ {"ok method", "notifyOK"},
+ {"exception method", "notifyError"},
+ };
+ checkAttributes(object, sendResponseNotifierPath, sendResponseNotifierAttrValues, errorList);
+ String errQueuePath = sendResponseNotifierPath + "/err/NotifyQueues/queue#MincomJMS_reply";
+ String[][] errQueueAttrValues = {
+ {"jndi name", "queue/MincomJMS_reply"},
+ };
+ checkAttributes(object, errQueuePath, errQueueAttrValues, errorList);
+
+ assertTrue(errorList.toString(), errorList.length() == 0);
+ }
+
XModelObject getFileObject(String parentPath, String xmlname) {
+ return getFileObject(parentPath, xmlname, ESBConstants.ENT_ESB_FILE_101);
+ }
+
+ XModelObject getFileObject(String parentPath, String xmlname, String entity) {
IFile f = project.getFile(new Path(parentPath + "/" + xmlname));
assertTrue("Cannot find " + xmlname, f != null);
XModelObject object = EclipseResourceUtil.createObjectForResource(f);
assertTrue("Cannot create model for " + xmlname, object != null);
- assertTrue("Wrong entity for " + xmlname, ESBConstants.ENT_ESB_FILE_101.equals(object.getModelEntity().getName()));
+ assertTrue("Wrong entity for " + xmlname, entity.equals(object.getModelEntity().getName()));
return object;
}
More information about the jbosstools-commits
mailing list