Package org.springside.examples.showcase.ws.server.result

Examples of org.springside.examples.showcase.ws.server.result.GetUserResult


   * 测试访问与SpringSecurity结合的EndPoint, 调用受SpringSecurity保护的方法, 用<jaxws:client/>创建的Client.
   */
  @Test
  public void getUserWithSpringSecurity() {
    UserWebService userWebService = (UserWebService) applicationContext.getBean("userServiceWithSpringSecurity");
    GetUserResult result = userWebService.getUser("1");
    assertEquals("admin", result.getUser().getLoginName());
  }
View Full Code Here


   * 测试访问没有与SpringSecurity结合的EndPoint, 调用受SpringSecurity保护的方法, 用<jaxws:client/>创建的Client.
   */
  @Test(expected = SOAPFaultException.class)
  public void getUserWithSpringSecurityWithoutPermission() {
    UserWebService userWebService = (UserWebService) applicationContext.getBean("userServiceWithPlainPassword");
    GetUserResult result = userWebService.getUser("1");
    assertEquals("admin", result.getUser().getLoginName());
  }
View Full Code Here

      User entity = accountManager.getInitedUser(id);
      dbStopWatch.stop();

      UserDTO dto = dozer.map(entity, UserDTO.class);

      GetUserResult result = new GetUserResult();
      result.setUser(dto);

      totalStopWatch.stop("GerUser.total.success");

      return result;
    } catch (ObjectNotFoundException e) {
View Full Code Here

TOP

Related Classes of org.springside.examples.showcase.ws.server.result.GetUserResult

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.