This is the mail archive of the mailing list for the Mauve project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

SeverSocket.toString() not specified


The spec for ServerSocket.toString() only says:
    Returns the implementation address and implementation port of this
    socket as a String.

So no valid test can be made for that method.

InetAddress.toString() also does not have a specification of the
returned String format:
	Converts this IP address to a String.

So I propose to drop both tests.

        * gnu/testlet/java/net/ServerSocket/
        (test_params): Drop unspecified toString() tests.

Any objections?


Index: gnu/testlet/java/net/ServerSocket/
RCS file: /cvs/mauve/mauve/gnu/testlet/java/net/ServerSocket/,v
retrieving revision 1.2
diff -u -r1.2
---	1999/07/12 16:26:14	1.2
+++	2002/04/05 13:19:33
@@ -166,14 +166,6 @@
 			catch ( Exception e ){}
-			if ( !sock.toString().equals(
-"Error : test_params failed - 4" + "toString did not return proper values " );
-			if ( !sock.getInetAddress().toString().equals(
-			  "all-zeros-broadcast/"))
-"Error : test_params failed - 5" + "getInetAddress did not return proper values " );
 			sock.setSocketFactory( null );

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]