Package org.sonar.api.test

Examples of org.sonar.api.test.CoverageBlock.testCase()


    assertThat(testCase.doesCover()).isTrue();
    assertThat(testCase.countCoveredLines()).isEqualTo(3);
    assertThat(testCase.coverageBlocks()).hasSize(1);

    CoverageBlock cover = Iterables.getFirst(testCase.coverageBlocks(), null);
    assertThat(cover.testCase()).isEqualTo(testCase);
    assertThat(cover.testable()).isSameAs(testable);
    assertThat(cover.lines()).containsExactly(10, 11, 12);
  }

  @Test
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.