Package ro.bjug.todo.api

Examples of ro.bjug.todo.api.Todo.toBuilder()


  public void testDeleteAll() {
    final String id = UUID.randomUUID().toString();
    final Todo todo = Todo.newBuilder().id(id).created(new Date()).build();

    dao.insert(todo);
    dao.insert(todo.toBuilder().id("dummy").build());
    assertThat(dao.findAll()).hasSize(2);

    ClientResponse response = client().resource("/todos").delete(ClientResponse.class);
    assertThat(response.getStatus()).isEqualTo(Response.Status.NO_CONTENT.getStatusCode());
    assertThat(dao.findAll()).isEmpty();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.