String content = readFileContent(sourceFile);
return new Source(sourceFile, content);
}
});
when(logMock.isInfoEnabled()).thenReturn(true);
when(jobMock.validate()).thenReturn(new ValidationErrors());
mojo = new CoverallsReportMojo() {
@Override
protected SourceLoader createSourceLoader(final Job job) {
return sourceLoaderMock;