Examples of coverageBlocks()


Examples of org.sonar.api.test.MutableTestCase.coverageBlocks()

    CoverageBlock block = mock(CoverageBlock.class);
    when(block.testable()).thenReturn(testable);
    when(block.lines()).thenReturn(Arrays.asList(new Integer[coveredLines]));

    MutableTestCase testCase = mock(MutableTestCase.class);
    when(testCase.coverageBlocks()).thenReturn(newArrayList(block));
    return testCase;
  }

}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.