Author: pferraro
Date: 2009-04-27 12:07:57 -0400 (Mon, 27 Apr 2009)
New Revision: 2409
Modified:
trunk/mod_cluster/src/test/java/org/jboss/modcluster/advertise/MulticastSocketFactoryImplTestCase.java
Log:
Minor tweaking
Modified:
trunk/mod_cluster/src/test/java/org/jboss/modcluster/advertise/MulticastSocketFactoryImplTestCase.java
===================================================================
---
trunk/mod_cluster/src/test/java/org/jboss/modcluster/advertise/MulticastSocketFactoryImplTestCase.java 2009-04-27
16:07:10 UTC (rev 2408)
+++
trunk/mod_cluster/src/test/java/org/jboss/modcluster/advertise/MulticastSocketFactoryImplTestCase.java 2009-04-27
16:07:57 UTC (rev 2409)
@@ -44,7 +44,7 @@
private static final int ADVERTISE_PORT = 23365;
@Test
- public void createMulticastSocketNotLinux() throws IOException
+ public void testMulticastSocketNotLinux() throws IOException
{
String os = System.getProperty("os.name");
@@ -57,7 +57,7 @@
System.setProperty("os.name", "OtherOS");
}
- this.createMulticastSocketAsLinux();
+ this.testMulticastSocketAsLinux();
}
finally
{
@@ -69,12 +69,12 @@
}
@Test
- public void createMulticastSocketAsLinux() throws IOException
+ public void testMulticastSocketAsLinux() throws IOException
{
InetAddress groupAddress = InetAddress.getByName(ADVERTISE_GROUP);
- MulticastSocketFactory socketFactory = new MulticastSocketFactoryImpl();
- MulticastSocket factorySocket = socketFactory.createMulticastSocket(groupAddress,
ADVERTISE_PORT);
+ MulticastSocketFactory factory = new MulticastSocketFactoryImpl();
+ MulticastSocket factorySocket = factory.createMulticastSocket(groupAddress,
ADVERTISE_PORT);
try
{
@@ -111,7 +111,7 @@
}
catch (InterruptedException e)
{
- Thread.interrupted();
+ Thread.currentThread().interrupt();
}
Arrays.fill(buffer, (byte) 0);
Show replies by date