Package org.springside.examples.showcase.webservice.soap.response

Examples of org.springside.examples.showcase.webservice.soap.response.GetTeamDetailResult


  @Test
  @Category(Smoke.class)
  public void getTeamDetail() {
    AccountSoapService accountWebService = creatClient();

    GetTeamDetailResult result = accountWebService.getTeamDetail(1L);
    assertThat(result.getTeam().getName()).isEqualTo("Dolphin");
    assertThat(result.getTeam().getMaster().getName()).isEqualTo("管理员");
  }
View Full Code Here


  /**
   * @see AccountSoapService#getTeamDetail(Long)
   */
  @Override
  public GetTeamDetailResult getTeamDetail(Long id) {
    GetTeamDetailResult result = new GetTeamDetailResult();
    try {

      Validate.notNull(id, "id参数为空");

      Team team = accountService.getTeamWithDetail(id);

      Validate.notNull(team, "项目不存在(id:" + id + ")");

      TeamDTO dto = BeanMapper.map(team, TeamDTO.class);
      result.setTeam(dto);

      return result;
    } catch (IllegalArgumentException e) {
      return handleParameterError(result, e);
    } catch (RuntimeException e) {
View Full Code Here

TOP

Related Classes of org.springside.examples.showcase.webservice.soap.response.GetTeamDetailResult

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.