Package org.sonar.api.component

Examples of org.sonar.api.component.MutablePerspective


  @Test
  public void should_load_perspective() throws Exception {

    ScanGraph graph = ScanGraph.create();
    MutablePerspective expectedPerspective = mock(MutablePerspective.class);

    ComponentVertex fileComponent = graph.addComponent(MockSourceFile.createMain("org.foo.Bar"));
    GraphPerspectiveLoader perspectiveLoader = mock(GraphPerspectiveLoader.class);
    when(perspectiveLoader.load(fileComponent)).thenReturn(expectedPerspective);
View Full Code Here

TOP

Related Classes of org.sonar.api.component.MutablePerspective

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.