use of org.apache.hyracks.control.common.logs.LogFile in project asterixdb by apache.
the class JobManagerTest method mockClusterControllerService.
private ClusterControllerService mockClusterControllerService() {
ClusterControllerService ccs = mock(ClusterControllerService.class);
CCServiceContext ccServiceCtx = mock(CCServiceContext.class);
LogFile logFile = mock(LogFile.class);
INodeManager nodeManager = mockNodeManager();
when(ccs.getContext()).thenReturn(ccServiceCtx);
when(ccs.getJobLogFile()).thenReturn(logFile);
when(ccs.getNodeManager()).thenReturn(nodeManager);
when(ccs.getCCConfig()).thenReturn(ccConfig);
return ccs;
}
Aggregations