hammant 2002/08/26 06:59:52
Modified: altrmi/src/test/org/apache/excalibur/altrmi/test
AbstractHelloTestCase.java
altrmi/src/test/org/apache/excalibur/altrmi/test/piped
PipedObjectStreamTestCase.java
altrmi/src/test/org/apache/excalibur/altrmi/test/socket
ObjectStreamTestCase.java
Removed: altrmi/src/test/org/apache/excalibur/altrmi/test
TestClient.java
Log:
TestCase for bug 4499841
Revision Changes Path
1.7 +17 -1
jakarta-avalon-excalibur/altrmi/src/test/org/apache/excalibur/altrmi/test/AbstractHelloTestCase.java
Index: AbstractHelloTestCase.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-excalibur/altrmi/src/test/org/apache/excalibur/altrmi/test/AbstractHelloTestCase.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- AbstractHelloTestCase.java 26 Aug 2002 10:44:08 -0000 1.6
+++ AbstractHelloTestCase.java 26 Aug 2002 13:59:51 -0000 1.7
@@ -26,6 +26,7 @@
protected TestInterfaceImpl testServer;
protected TestInterface testClient;
protected AltrmiFactory altrmiFactory;
+ protected boolean testForBug4499841 = true;
public AbstractHelloTestCase(String name)
{
@@ -183,6 +184,22 @@
}
+ public void testBugParadeBugNumber4499841() throws Exception
+ {
+ TestObject[] tos = testClient.getTestObjects();
+ testClient.changeTestObjectNames();
+ TestObject[] tos2 = testClient.getTestObjects();
+ for( int i = 0; i < tos.length; i++ )
+ {
+ TestObject to = tos[ i ];
+ TestObject to2 = tos2[ i ];
+ if (testForBug4499841)
+ {
+ assertEquals(to.getName().toLowerCase(), to2.getName());
+ }
+ }
+ }
+
public void testSpeed() throws Exception
{
@@ -205,6 +222,5 @@
}
}
-
}
1.4 +8 -0
jakarta-avalon-excalibur/altrmi/src/test/org/apache/excalibur/altrmi/test/piped/PipedObjectStreamTestCase.java
Index: PipedObjectStreamTestCase.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-excalibur/altrmi/src/test/org/apache/excalibur/altrmi/test/piped/PipedObjectStreamTestCase.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- PipedObjectStreamTestCase.java 26 Aug 2002 10:44:08 -0000 1.3
+++ PipedObjectStreamTestCase.java 26 Aug 2002 13:59:52 -0000 1.4
@@ -33,6 +33,14 @@
public PipedObjectStreamTestCase(String name)
{
super(name);
+
+ // See http://developer.java.sun.com/developer/bugParade/bugs/4499841.html
+ // This bug prevents ObjectStream from functioning correctly when used
+ // by AltRMI. You can still use the ObjectStream transports, but
+ // should be aware of the limitations. See testBugParadeBugNumber4499841()
+ // in the parent class.
+ testForBug4499841 = false;
+
}
protected void setUp() throws Exception
1.4 +8 -0
jakarta-avalon-excalibur/altrmi/src/test/org/apache/excalibur/altrmi/test/socket/ObjectStreamTestCase.java
Index: ObjectStreamTestCase.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-excalibur/altrmi/src/test/org/apache/excalibur/altrmi/test/socket/ObjectStreamTestCase.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ObjectStreamTestCase.java 26 Aug 2002 10:44:08 -0000 1.3
+++ ObjectStreamTestCase.java 26 Aug 2002 13:59:52 -0000 1.4
@@ -30,6 +30,14 @@
public ObjectStreamTestCase(String name)
{
super(name);
+
+ // See http://developer.java.sun.com/developer/bugParade/bugs/4499841.html
+ // This bug prevents ObjectStream from functioning correctly when used
+ // by AltRMI. You can still use the ObjectStream transports, but
+ // should be aware of the limitations. See testBugParadeBugNumber4499841()
+ // in the parent class.
+ testForBug4499841 = false;
+
}
protected void setUp() throws Exception
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>