}
};
final ViewProcessWorkerContext context = Mockito.mock(ViewProcessWorkerContext.class);
final ViewExecutionOptions options = ExecutionOptions.infinite(MarketData.live(), ExecutionFlags.none().ignoreCompilationValidity().get());
final ParallelRecompilationViewProcessWorker worker = new ParallelRecompilationViewProcessWorker(workerFactory, context, options, viewDefinitions.get(0));
AbstractViewProcessWorkerContext primary, secondary;
// With no current workers
assertNull(worker.getPrimary());
assertNull(worker.getSecondary());
worker.updateViewDefinition(viewDefinitions.get(1));
// With a primary worker only