Пример #1
0
  @Test
  public void testFindByIdWithClientServiceShouldPass() throws Exception {

    client.setName("test findById");
    clientService.create(client);
    Integer insertedId = client.getId();

    Client result = clientService.findById(insertedId);

    assertThat(result.getName(), is("test findById"));
  }