@Test(priority = 2) @RunAsClient public void testUpdateCard() throws Exception { testCard.setTitle("This is an updated title"); Card updatedCard = this.cardApi.updateCard(testCard); Assert.assertEquals(updatedCard.getId(),testCard.getId()); Assert.assertEquals(updatedCard.getTitle(), testCard.getTitle()); this.testCard = updatedCard; }
@WebMethod @Override @RolesAllowed("user") public Card updateCard(@WebParam Card card){ if(card.getId()==null)return createCard(card); return cardService.updateCard(card); }
CardSoapApi implements CardApi { @WebMethod @Override @RolesAllowed("user") public Card updateCard(@WebParam Card card){ if(card.getId()==null)return createCard(card); return cardService.updateCard(card); } }
CardSoapApi implements CardApi { @WebMethod @Override @RolesAllowed("user") public Card updateCard(@WebParam Card card){ if(card.getId()==null)return createCard(card); return cardService.updateCard(card); }  }
CardSoapApi implements CardApi { @WebMethod @Override @RolesAllowed("user") public Card updateCard(@WebParam Card card){ if(card.getId()==null)return createCard(card); return cardService.updateCard(card); }  @WebMethod @Override @RolesAllowed("user") Card createCard(@WebParam Card card); @WebMethod @Override @RolesAllowed("user") Card updateCard(@WebParam Card card); @WebMethod @Override @RolesAllowed("user") Card getCard(@WebParam Long id); @WebMethod @Override @RolesAllowed("admin") void removeCard(@WebParam Long id); }
CardSoapApi implements CardApi { @WebMethod @Override @RolesAllowed("user") public Card updateCard(@WebParam Card card){ if(card.getId()==null)return createCard(card); return cardService.updateCard(card); }  @WebMethod @Override @RolesAllowed("user") Card createCard(@WebParam Card card); @WebMethod @Override @RolesAllowed("user") Card updateCard(@WebParam Card card); @WebMethod @Override @RolesAllowed("user") Card getCard(@WebParam Long id); @WebMethod @Override @RolesAllowed("admin") void removeCard(@WebParam Long id);  }