Package org.sonar.server.ws

Examples of org.sonar.server.ws.WsTester.controller()


  @Before
  public void setUp() throws Exception {
    WsTester tester = new WsTester(new ComponentsWs(new ComponentAppAction(mock(DbClient.class), mock(IssueService.class), mock(Views.class),
      mock(RuleService.class), mock(Periods.class), mock(Durations.class), mock(I18n.class))));
    controller = tester.controller("api/components");
  }

  @Test
  public void define_controller() throws Exception {
    assertThat(controller).isNotNull();
View Full Code Here


  WebService.Controller controller;

  @Before
  public void setUp() throws Exception {
    WsTester tester = new WsTester(new TimeMachineWs());
    controller = tester.controller("api/timemachine");
  }

  @Test
  public void define_controller() throws Exception {
    assertThat(controller).isNotNull();
View Full Code Here

  WebService.Controller controller;

  @Before
  public void setUp() throws Exception {
    WsTester tester = new WsTester(new UsersWs());
    controller = tester.controller("api/users");
  }

  @Test
  public void define_controller() throws Exception {
    assertThat(controller).isNotNull();
View Full Code Here

  @Before
  public void setUp() throws Exception {
    SnapshotPerspectives snapshotPerspectives = mock(SnapshotPerspectives.class);
    WsTester tester = new WsTester(new TestsWs(new TestsShowAction(mock(DbClient.class), snapshotPerspectives), new TestsTestCasesAction(snapshotPerspectives), new TestsCoveredFilesAction(snapshotPerspectives)));
    controller = tester.controller("api/tests");
  }

  @Test
  public void define_controller() throws Exception {
    assertThat(controller).isNotNull();
View Full Code Here

  WebService.Controller controller;

  @Before
  public void setUp() throws Exception {
    WsTester tester = new WsTester(new CoverageWs(new CoverageShowAction(mock(CoverageService.class))));
    controller = tester.controller("api/coverage");
  }

  @Test
  public void define_controller() throws Exception {
    assertThat(controller).isNotNull();
View Full Code Here

  WebService.Controller controller;

  @Before
  public void setUp() throws Exception {
    WsTester tester = new WsTester(new ResourcesWs());
    controller = tester.controller("api/resources");
  }

  @Test
  public void define_controller() throws Exception {
    assertThat(controller).isNotNull();
View Full Code Here

  WebService.Controller controller;

  @Before
  public void setUp() throws Exception {
    WsTester tester = new WsTester(new ProjectsWs());
    controller = tester.controller("api/projects");
  }

  @Test
  public void define_controller() throws Exception {
    assertThat(controller).isNotNull();
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.