Package org.sonar.core.component

Examples of org.sonar.core.component.ScanGraph.addComponent()


  @Test
  public void should_create_perspective() {
    ScanGraph graph = ScanGraph.create();
    TestPlanPerspectiveLoader loader = new TestPlanPerspectiveLoader();
    TestPlanBuilder builder = new TestPlanBuilder(graph, loader);
    ComponentVertex file = graph.addComponent(MockSourceFile.createMain("org.foo.Bar"));

    MutableTestPlan plan = builder.create(file);
    assertThat(plan).isNotNull();
    assertThat(plan.component()).isSameAs(file);
    assertThat(builder.getPerspectiveLoader().load(file)).isSameAs(plan);
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.