Package org.sonar.api.test

Examples of org.sonar.api.test.Testable.component()


      "}\n");
  }

  private MutableTestCase testCase(String fileKey, String fileLongName, int coveredLines) {
    Testable testable = mock(Testable.class);
    when(testable.component()).thenReturn(new ComponentDto().setKey(fileKey).setLongName(fileLongName));

    CoverageBlock block = mock(CoverageBlock.class);
    when(block.testable()).thenReturn(testable);
    when(block.lines()).thenReturn(Arrays.asList(new Integer[coveredLines]));
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.