1 37 38 package net.sourceforge.cruisecontrol.distributed.util; 39 40 import junit.framework.TestCase; 41 import net.sourceforge.cruisecontrol.builders.DistributedMasterBuilderTest; 42 43 public class MulticastDiscoveryTest extends TestCase { 44 45 private Process jiniProcess; 46 47 protected void setUp() throws Exception { 48 jiniProcess = DistributedMasterBuilderTest.startJini(); 49 } 50 51 protected void tearDown() throws Exception { 52 DistributedMasterBuilderTest.killJini(jiniProcess); 53 } 54 55 56 public void testMulticastDiscovery() throws Exception { 57 62 MulticastDiscovery discovery = new MulticastDiscovery(null); 63 try { 64 assertNull(discovery.findMatchingService()); 65 } finally { 66 discovery.terminate(); 67 } 68 } 69 70 } 71 | Popular Tags |