harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r490989 - /harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/MulticastSocketTest.java
Date Fri, 29 Dec 2006 12:26:13 GMT
Author: tellison
Date: Fri Dec 29 04:26:13 2006
New Revision: 490989

URL: http://svn.apache.org/viewvc?view=rev&rev=490989
Log:
Apply regression test for HARMONY-2410 ([classlib][luni] java.net.MulticastSocket.setInterface(InetAddress)
doesn't throw SocketException)

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/MulticastSocketTest.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/MulticastSocketTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/MulticastSocketTest.java?view=diff&rev=490989&r1=490988&r2=490989
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/MulticastSocketTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/MulticastSocketTest.java
Fri Dec 29 04:26:13 2006
@@ -782,6 +782,19 @@
 		} catch (UnknownHostException e) {
 			fail("Exception during setInterface test: " + e.toString());
 		}
+
+		// Regression test for Harmony-2410
+		try {
+			mss = new MulticastSocket();
+			mss.setInterface(InetAddress.getByName("224.0.0.5"));
+		} catch (UnknownHostException uhe) {
+			fail("Unable to get InetAddress by name from '224.0.0.5' addr: " + uhe.toString());
+		} catch (SocketException se) {
+			// expected
+		} catch (IOException ioe) {
+			handleException(ioe, SO_MULTICAST_INTERFACE);
+			return;
+		}
 	}
 
 	/**



Mime
View raw message