[jboss-svn-commits] JBL Code SVN: r7349 - labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/listeners
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Nov 2 17:03:04 EST 2006
Author: jokum
Date: 2006-11-02 17:03:03 -0500 (Thu, 02 Nov 2006)
New Revision: 7349
Removed:
labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/listeners/HttpListenerConfig.xml
labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/listeners/HttpListenerTest.java
Log:
temp removed
Deleted: labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/listeners/HttpListenerConfig.xml
===================================================================
--- labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/listeners/HttpListenerConfig.xml 2006-11-02 21:58:14 UTC (rev 7348)
+++ labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/listeners/HttpListenerConfig.xml 2006-11-02 22:03:03 UTC (rev 7349)
@@ -1,14 +0,0 @@
-<JBossESB parameterReloadSecs="60000"
- commandConnFactoryClass="ConnectionFactory"
- commandJndiType="jboss"
- commandJndiURL="localhost"
- commandIsTopic="false"
- messageSelector="gpMsgSelector='test'"
- commandJndiName="queue/A"
- >
-
- <HttpListenerTest listenerClass="org.jboss.soa.esb.listeners.message.HttpListener" actions="HttpInvocationToFile">
- <action class="org.jboss.soa.esb.actions.MessageBox" />
- <action class="org.jboss.soa.esb.actions.routing.EchoRouter"/>
- </HttpListenerTest>
-</JBossESB>
\ No newline at end of file
Deleted: labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/listeners/HttpListenerTest.java
===================================================================
--- labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/listeners/HttpListenerTest.java 2006-11-02 21:58:14 UTC (rev 7348)
+++ labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/listeners/HttpListenerTest.java 2006-11-02 22:03:03 UTC (rev 7349)
@@ -1,72 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.soa.esb.listeners;
-
-import junit.framework.TestCase;
-
-import org.jboss.remoting.Client;
-import org.jboss.remoting.InvokerLocator;
-import org.jboss.soa.esb.actions.MessageBox;
-import org.jboss.soa.esb.util.ClassUtils;
-import org.jboss.soa.esb.util.ListenerUtils;
-import org.jboss.soa.esb.util.ListenerUtils.ListenersManagerExecThread;
-
-/**
- * QA Tests for the HttpListener.
- *
- */
-public class HttpListenerTest extends TestCase {
-
- private ListenersManagerExecThread listenersMgr;
-
- protected void setUp() throws Exception {
- // Start the listener...
-// Start the listener...
- System.out.println("-->" + ClassUtils.toResourcePath(getClass().getPackage()) );
- listenersMgr = ListenerUtils.startListeners("\\org\\jboss\\soa\\esb\\listeners\\HttpListenerConfig.xml");
- }
-
- public void test() throws Throwable {
-
- // There should have been no exceptions...
- listenersMgr.assertNotInException();
-
- MessageBox.messages.clear();
- String locatorURI = "http://localhost:5400";
- InvokerLocator locator = new InvokerLocator(locatorURI);
-
- Client remotingClient = new Client(locator);
- remotingClient.connect();
-
- remotingClient.invoke("test string", null);
-
- MessageBox.assertMessageCount(1, 10000);
-
- // There should have been no exceptions...
- listenersMgr.assertNotInException();
-
- }
-
- protected void tearDown() throws Exception {
- }
-
-}
More information about the jboss-svn-commits
mailing list