コード例 #1
0
 @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());
 }
コード例 #2
0
 @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());
 }