\r
import java.net.InetAddress;\r
import java.net.UnknownHostException;\r
-import java.util.concurrent.Future;\r
-\r
import junit.framework.TestCase;\r
\r
import org.junit.Assert;\r
import org.junit.Test;\r
-import org.opendaylight.controller.hosttracker.hostAware.HostNodeConnector;\r
\r
public class HostTrackerTest extends TestCase {\r
\r
\r
long count = htCallable.latch.getCount();\r
htCallable.wakeup();\r
- Assert.assertTrue(htCallable.latch.getCount() == --count);\r
+ Assert.assertTrue(htCallable.latch.getCount() == (count - 1));\r
}\r
\r
@Test\r
\r
InetAddress hostIP_1 = InetAddress.getByName("192.168.0.8");\r
InetAddress hostIP_2 = InetAddress.getByName("192.168.0.18");\r
- Future<HostNodeConnector> dschost = hostTracker.discoverHost(hostIP_1);\r
- dschost = hostTracker.discoverHost(hostIP_2);\r
+ hostTracker.discoverHost(hostIP_1);\r
+ hostTracker.discoverHost(hostIP_2);\r
hostTracker.nonClusterObjectCreate();\r
}\r
\r