use of org.sonar.api.test.MutableTestCase in project sonarqube by SonarSource.
the class GenericTestExecutionReportParserTest method before.
@Before
public void before() {
context = SensorContextTester.create(new File(""));
fileWithBranches = setupFile("src/main/java/com/example/ClassWithBranches.java");
emptyFile = setupFile("src/main/java/com/example/EmptyClass.java");
testPlanBuilder = mock(TestPlanBuilder.class);
MutableTestCase testCase = mockMutableTestCase();
testPlan = mockMutableTestPlan(testCase);
when(testPlanBuilder.loadPerspective(eq(MutableTestPlan.class), any(InputFile.class))).thenReturn(testPlan);
}
Aggregations