[jboss-svn-commits] JBL Code SVN: r15663 - in labs/jbossesb/workspace/bramley/product/rosetta: tests/src/org/jboss/soa/esb/listeners/gateway and 1 other directory.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Oct 8 15:47:51 EDT 2007
Author: mark.little at jboss.com
Date: 2007-10-08 15:47:50 -0400 (Mon, 08 Oct 2007)
New Revision: 15663
Modified:
labs/jbossesb/workspace/bramley/product/rosetta/src/org/jboss/soa/esb/listeners/ListenerUtil.java
labs/jbossesb/workspace/bramley/product/rosetta/tests/src/org/jboss/soa/esb/listeners/gateway/GatewayInVMServiceUnitTest.java
labs/jbossesb/workspace/bramley/product/rosetta/tests/src/org/jboss/soa/esb/listeners/gateway/listenerInVM.xml
Log:
Modified: labs/jbossesb/workspace/bramley/product/rosetta/src/org/jboss/soa/esb/listeners/ListenerUtil.java
===================================================================
--- labs/jbossesb/workspace/bramley/product/rosetta/src/org/jboss/soa/esb/listeners/ListenerUtil.java 2007-10-08 19:44:24 UTC (rev 15662)
+++ labs/jbossesb/workspace/bramley/product/rosetta/src/org/jboss/soa/esb/listeners/ListenerUtil.java 2007-10-08 19:47:50 UTC (rev 15663)
@@ -94,7 +94,7 @@
return fileEprFromElement(tree);
if ("jdbc".equals(protocol))
return jdbcEprFromElement(tree);
- if (protocol.equals("local"))
+ if ("local".equals(protocol))
return inVMEprFromElement(tree);
}
catch (Exception e)
Modified: labs/jbossesb/workspace/bramley/product/rosetta/tests/src/org/jboss/soa/esb/listeners/gateway/GatewayInVMServiceUnitTest.java
===================================================================
--- labs/jbossesb/workspace/bramley/product/rosetta/tests/src/org/jboss/soa/esb/listeners/gateway/GatewayInVMServiceUnitTest.java 2007-10-08 19:44:24 UTC (rev 15662)
+++ labs/jbossesb/workspace/bramley/product/rosetta/tests/src/org/jboss/soa/esb/listeners/gateway/GatewayInVMServiceUnitTest.java 2007-10-08 19:47:50 UTC (rev 15663)
@@ -102,19 +102,22 @@
gateway.initialise();
gateway.start();
- gateway.onSchedule();
File testFile = null;
try
{
- testFile = File.createTempFile("foo", "testFile");
+ testFile = File.createTempFile("foo", ".dummy", tmpDir);
String testString = "Hello World";
FileOutputStream stream = new FileOutputStream(testFile);
+ System.err.println("**creating "+testFile);
+
stream.write(testString.getBytes());
stream.close();
+
+ gateway.onSchedule();
}
catch (Throwable ex)
{
@@ -124,7 +127,7 @@
}
finally
{
- testFile.delete();
+ //testFile.delete();
}
gateway.stop();
Modified: labs/jbossesb/workspace/bramley/product/rosetta/tests/src/org/jboss/soa/esb/listeners/gateway/listenerInVM.xml
===================================================================
--- labs/jbossesb/workspace/bramley/product/rosetta/tests/src/org/jboss/soa/esb/listeners/gateway/listenerInVM.xml 2007-10-08 19:44:24 UTC (rev 15662)
+++ labs/jbossesb/workspace/bramley/product/rosetta/tests/src/org/jboss/soa/esb/listeners/gateway/listenerInVM.xml 2007-10-08 19:47:50 UTC (rev 15663)
@@ -1,6 +1,6 @@
<DummyTester parameterReloadSecs="180">
<DummyActionConfig
- service-category="Example"
+ service-category="Example12345"
service-name="Test12345"
service-description="My Dummy Service Name InVM"
listenerClass="org.jboss.soa.esb.listeners.message.MessageAwareListener"
More information about the jboss-svn-commits
mailing list