Package org.sonar.api.batch.sensor.duplication.DuplicationGroup

Examples of org.sonar.api.batch.sensor.duplication.DuplicationGroup.Block


      .originBlock(20, 30)
      .isDuplicatedBy(new DefaultInputFile("foo", "foo3.php"), 30, 40)
      .build();

    assertThat(duplicationGroup).hasSize(2);
    Block originBlock = duplicationGroup.get(0).originBlock();
    assertThat(originBlock.resourceKey()).isEqualTo("foo:foo.php");
    assertThat(originBlock.startLine()).isEqualTo(1);
    assertThat(originBlock.length()).isEqualTo(11);
    assertThat(duplicationGroup.get(0).duplicates()).hasSize(2);
  }
View Full Code Here

TOP

Related Classes of org.sonar.api.batch.sensor.duplication.DuplicationGroup.Block

Copyright © 2018 www.massapicom. 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.