@Test public void dwoNotifyConfigChangeCallsDoNotifyConfigChange() throws InterruptedException { m_adapter.nodeConfigChanged(1); Assert.assertEquals(1, m_adapter.getOperationQueue().getOperationQueueForNode(1).size()); Thread.sleep(3000); Assert.assertEquals(0, m_adapter.getOperationQueue().getOperationQueueForNode(1).size()); }
@Test public void dwoUpdateNodeCallsDoUpdateNode() throws InterruptedException { m_adapter.updateNode(1); Assert.assertEquals(1, m_adapter.getOperationQueue().getOperationQueueForNode(1).size()); Thread.sleep(3000); Assert.assertEquals(0, m_adapter.getOperationQueue().getOperationQueueForNode(1).size()); }