Package org.ngrinder.common.controller

Examples of org.ngrinder.common.controller.BaseController


   * {@link UserController#checkDuplication(String)}
   * .
   */
  @Test
  public void testDuplication() {
    BaseController ngrinderBaseController = new BaseController();
    HttpEntity<String> rtnStr = userController.checkDuplication("not-exist");
    assertThat(rtnStr.getBody(), is(ngrinderBaseController.returnSuccess()));

    rtnStr = userController.checkDuplication(getTestUser().getUserId());
    assertThat(rtnStr.getBody(), is(ngrinderBaseController.returnError()));
  }
View Full Code Here

TOP

Related Classes of org.ngrinder.common.controller.BaseController

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.