You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by ha...@apache.org on 2003/01/28 22:14:50 UTC
cvs commit: jakarta-avalon-excalibur/altrmi/src/test/org/apache/excalibur/altrmi/test/socket MyTestCallBackListener.java CallbackEnabledCustomStreamTestCase.java
hammant 2003/01/28 13:14:50
Modified: altrmi base.xml
altrmi/src/test/org/apache/excalibur/altrmi/test/socket
CallbackEnabledCustomStreamTestCase.java
Added: altrmi/src/test/org/apache/excalibur/altrmi/test/socket
MyTestCallBackListener.java
Log:
Callback testcase working again.
Revision Changes Path
1.11 +1 -1 jakarta-avalon-excalibur/altrmi/base.xml
Index: base.xml
===================================================================
RCS file: /home/cvs/jakarta-avalon-excalibur/altrmi/base.xml,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- base.xml 9 Jan 2003 22:55:09 -0000 1.10
+++ base.xml 28 Jan 2003 21:14:49 -0000 1.11
@@ -56,7 +56,7 @@
</classpath>
</altrmiproxies>
- <altrmiproxies genname="CallBackTestListenerImpl" srcgendir="${build.home}/genjava"
+ <altrmiproxies genname="MyTestCallBackListener" srcgendir="${build.home}/genjava"
classgendir="${build.home}/genclasses" verbose="true"
interfaces="org.apache.excalibur.altrmi.test.TestCallBackListener">
<classpath>
1.8 +2 -14 jakarta-avalon-excalibur/altrmi/src/test/org/apache/excalibur/altrmi/test/socket/CallbackEnabledCustomStreamTestCase.java
Index: CallbackEnabledCustomStreamTestCase.java
===================================================================
RCS file: /home/cvs/jakarta-avalon-excalibur/altrmi/src/test/org/apache/excalibur/altrmi/test/socket/CallbackEnabledCustomStreamTestCase.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- CallbackEnabledCustomStreamTestCase.java 20 Jan 2003 07:45:36 -0000 1.7
+++ CallbackEnabledCustomStreamTestCase.java 28 Jan 2003 21:14:50 -0000 1.8
@@ -15,7 +15,6 @@
import org.apache.excalibur.altrmi.test.TestInterface3;
import org.apache.excalibur.altrmi.test.TestInterface2;
import org.apache.excalibur.altrmi.test.AbstractHelloCallBackTestCase;
-import org.apache.excalibur.altrmi.test.TestCallBackListener;
import org.apache.excalibur.altrmi.server.impl.callback.socket.CallbackEnabledSocketCustomStreamServer;
import org.apache.excalibur.altrmi.server.PublicationDescription;
@@ -59,22 +58,11 @@
Thread.yield();
}
- public void dont_testCallBack() {
+ public void testCallBack() {
final HashMap results = new HashMap();
- testClient.addCallBackListener(new TestCallBackListener() {
- public void serverCallingClient(String message)
- {
- results.put("1", message);
- }
-
- public void serverCallingClient2(TestInterface testInterface)
- {
- results.put("2", testInterface.toString());
- }
-
- });
+ testClient.addCallBackListener(new MyTestCallBackListener(results));
}
1.1 jakarta-avalon-excalibur/altrmi/src/test/org/apache/excalibur/altrmi/test/socket/MyTestCallBackListener.java
Index: MyTestCallBackListener.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.excalibur.altrmi.test.socket;
import org.apache.excalibur.altrmi.test.TestCallBackListener;
import org.apache.excalibur.altrmi.test.TestInterface;
import java.util.HashMap;
/**
* Test Custom Stream over sockets.
* @author Paul Hammant
*/
public class MyTestCallBackListener implements TestCallBackListener
{
private final HashMap results;
public MyTestCallBackListener(HashMap results)
{
this.results = results;
}
public void serverCallingClient(String message)
{
results.put("1", message);
}
public void serverCallingClient2(TestInterface testInterface)
{
results.put("2", testInterface.toString());
}
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>