use of org.apache.heron.spi.statemgr.SchedulerStateManagerAdaptor in project heron by twitter.
the class UpdateTopologyManagerTest method testLockTaken.
@Test(expected = ConcurrentModificationException.class)
public void testLockTaken() throws Exception {
SchedulerStateManagerAdaptor mockStateMgr = mockStateManager(testTopology, this.currentProtoPlan, mockLock(false));
UpdateTopologyManager spyUpdateManager = spyUpdateManager(mockStateMgr, mock(IScalable.class), testTopology);
spyUpdateManager.updateTopology(currentProtoPlan, proposedProtoPlan);
}
Aggregations