[jboss-cvs] JBossRemoting/src/tests/org/jboss/test/remoting/transporter ...
Tom Elrod
tom.elrod at jboss.com
Mon Aug 14 01:14:00 EDT 2006
User: telrod
Date: 06/08/14 01:14:00
Modified: src/tests/org/jboss/test/remoting/transporter
TestClient.java TestServer.java TestServerImpl.java
Log:
JBREM-579 - fixed transporters not converting primitive types for reflection call on the target pojo.
Revision Changes Path
1.4 +6 -2 JBossRemoting/src/tests/org/jboss/test/remoting/transporter/TestClient.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: TestClient.java
===================================================================
RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/transporter/TestClient.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- TestClient.java 4 Jan 2006 14:56:29 -0000 1.3
+++ TestClient.java 14 Aug 2006 05:14:00 -0000 1.4
@@ -22,11 +22,11 @@
package org.jboss.test.remoting.transporter;
-import java.io.IOException;
+import junit.framework.TestCase;
import org.jboss.remoting.InvokerLocator;
import org.jboss.remoting.transporter.TransporterClient;
-import junit.framework.TestCase;
+import java.io.IOException;
/**
* @author <a href="mailto:tom.elrod at jboss.com">Tom Elrod</a>
@@ -42,6 +42,10 @@
System.out.println("response is: " + response);
assertEquals("response should be 'Hello - has been processed'", "Hello - has been processed", response);
+ int intresp = test.processInt(123);
+ System.out.println("int response is: " + intresp);
+ assertEquals("response should be '456'", 456, intresp);
+
// now make call that should throw exception
try
{
1.4 +2 -0 JBossRemoting/src/tests/org/jboss/test/remoting/transporter/TestServer.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: TestServer.java
===================================================================
RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/transporter/TestServer.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- TestServer.java 4 Jan 2006 14:56:29 -0000 1.3
+++ TestServer.java 14 Aug 2006 05:14:00 -0000 1.4
@@ -31,5 +31,7 @@
{
public String processTestMessage(String msg);
+ public int processInt(int msg);
+
public void throwException() throws IOException;
}
\ No newline at end of file
1.5 +8 -1 JBossRemoting/src/tests/org/jboss/test/remoting/transporter/TestServerImpl.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: TestServerImpl.java
===================================================================
RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/transporter/TestServerImpl.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- TestServerImpl.java 27 Apr 2006 18:21:47 -0000 1.4
+++ TestServerImpl.java 14 Aug 2006 05:14:00 -0000 1.5
@@ -22,10 +22,11 @@
package org.jboss.test.remoting.transporter;
-import java.io.IOException;
import org.jboss.jrunit.extensions.ServerTestCase;
import org.jboss.remoting.transporter.TransporterServer;
+import java.io.IOException;
+
/**
* @author <a href="mailto:tom.elrod at jboss.com">Tom Elrod</a>
*/
@@ -39,6 +40,12 @@
return msg + " - has been processed";
}
+ public int processInt(int msg)
+ {
+ System.out.println("processing int " + msg);
+ return 456;
+ }
+
public void throwException() throws IOException
{
throw new IOException("This is an expected exception thrown by impl on purpose.");
More information about the jboss-cvs-commits
mailing list