Examples of MutablePerspective


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