### Question:
AbstractLinterMojo extends AbstractSingleProcessorMojo { @Override public void setFailNever(final boolean failNever) { this.failNever = failNever; }  @Override void setFailNever(final boolean failNever); void setFailThreshold(final int failThreshold); @Override boolean isFailNever(); void setFailFast(final boolean failFast);  }### Answer:
@Test public void testErrorsWithNoFailFast() throws Exception { mojo.setFailNever(true); mojo.setOptions("undef, browser"); mojo.setTargetGroups("undef"); mojo.execute(); }
@Test public void shouldUseTaskExecutorWhenRunningInParallel() throws Exception { final AtomicBoolean invoked = new AtomicBoolean(); final TaskExecutor<Void> taskExecutor = new TaskExecutor<Void>() { @Override public void submit(final Collection<Callable<Void>> callables) throws Exception { invoked.set(true); super.submit(callables); } }; mojo.setFailNever(true); mojo.setTaskExecutor(taskExecutor); mojo.setIgnoreMissingResources(Boolean.TRUE.toString()); mojo.setParallelProcessing(false); mojo.execute(); assertFalse(invoked.get()); mojo.setParallelProcessing(true); mojo.execute(); assertTrue(invoked.get()); }