Package org.sonar.api.server.ws

Examples of org.sonar.api.server.ws.WebService$NewController


  }

  @Test
  public void defineFieldsParam() throws Exception {
    WebService.Context context = new WebService.Context();
    new WebService() {
      @Override
      public void define(Context context) {
        NewController newController = context.createController("api/foo");
        NewAction action = newController.createAction("search").setHandler(mock(RequestHandler.class));
        SearchOptions.defineFieldsParam(action, Lists.newArrayList("name", "lang", "severity"));
View Full Code Here


  }

  @Test
  public void definePageParams() throws Exception {
    WebService.Context context = new WebService.Context();
    new WebService() {
      @Override
      public void define(Context context) {
        NewController newController = context.createController("api/foo");
        NewAction action = newController.createAction("search").setHandler(mock(RequestHandler.class));
        SearchOptions.definePageParams(action);
View Full Code Here

TOP

Related Classes of org.sonar.api.server.ws.WebService$NewController

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.