use of org.sonar.api.batch.postjob.PostJobContext in project sonarqube by SonarSource.
the class XooPostJobTest method increaseCoverage.
@Test
public void increaseCoverage() {
new XooPostJob().describe(new DefaultPostJobDescriptor());
PostJobContext context = mock(PostJobContext.class);
when(context.issues()).thenReturn(Arrays.<PostJobIssue>asList());
when(context.resolvedIssues()).thenReturn(Arrays.<PostJobIssue>asList());
new XooPostJob().execute(context);
assertThat(logTester.logs()).contains("Resolved issues: 0", "Open issues: 0");
}
Aggregations