Examples of Todo


Examples of net.petrikainulainen.spring.testmvc.todo.model.Todo

        verifyZeroInteractions(todoServiceMock);
    }

    @Test
    public void add_NewTodoEntry_ShouldAddTodoEntryAndRenderViewTodoEntryView() throws Exception {
        Todo added = new TodoBuilder()
                .id(ID)
                .description(DESCRIPTION)
                .title(TITLE)
                .build();
View Full Code Here

Examples of net.petrikainulainen.spring.testmvc.todo.model.Todo

        assertThat(formObject.getTitle(), is(TITLE));
    }

    @Test
    public void deleteById_TodoEntryFound_ShouldDeleteTodoEntryAndRenderTodoListView() throws Exception {
        Todo deleted = new TodoBuilder()
                .id(ID)
                .description("Bar")
                .title("Foo")
                .build();
View Full Code Here

Examples of net.sf.pmr.toDo.domain.todo.ToDo

     * quand le todo est trouvée.
     */
    public void testFindByIdWhenToDoIsFound() {
     
      // recherche du toDo
      ToDo TodoFound = (ToDo) this.toDoMapper.findById(1);
     
      // vérifie le résultat de la recherche
      assertEquals(TodoFound.getDescription(), "préparer réunion projet");
      // TODO comment tester les dates ?
      //assertEquals(TodoFound.getDate(), toDoToUpdate.getDate());
      assertFalse(TodoFound.isDone());
      assertEquals(TodoFound.getPersistanceId(), toDoToUpdate.getPersistanceId());
      assertEquals(TodoFound.getPersistanceVersion(), toDoToUpdate.getPersistanceVersion());
     
     
//      // le lasy loading est activé dans le mapping hibernate
//      // mais la session est fermée par hibernate --> on doit avoir une exception (ce qui nous permet de vérifier
//      // que le lazy load est activé)
View Full Code Here

Examples of org.apache.etch.util.Todo

      return 0;
   
    if (!server)
    {
      // use a Todo so as to not unnecessarily block AlarmManager.
      TodoManager.addTodo( new Todo()
      {
        public void doit( TodoManager mgr ) throws Exception
        {
          sendKeepAliveReq();
        }
View Full Code Here

Examples of org.glassfish.quality.ToDo

            final DescriptorSupport descriptor = descriptor(info.element());

            descriptor.setField(DESC_ELEMENT_CLASS, returnType.getName());
            descriptor.setField(DESC_XML_NAME, xmlName);

            final ToDo toDo = info.method().getAnnotation(ToDo.class);
            if (toDo != null)
            {
                descriptor.setField(DESC_CONFIG_PREFIX + "toDo", toDo.priority() + ", " + toDo.details());
            }

            final PropertiesDesc props = info.method().getAnnotation(PropertiesDesc.class);
            if (props != null)
            {
View Full Code Here

Examples of org.jboss.gwt.circuit.sample.todo.shared.Todo

        addInitialTodos();
    }

    private void addInitialTodos() {
        Todo[] todos = new Todo[]{
                new Todo("Buy milk", "Peter"), new Todo("Invent the next big thing"), new Todo("Relax!","Mary")
        };
        for (Todo todo : todos) {
            this.todos.put(todo.getId(), todo);
        }
    }
View Full Code Here

Examples of org.prevayler.socketserver.example.server.Todo

  /**
   * @see org.prevayler.util.TransactionWithQuery#executeAndQuery(Object, Date)
   */
  public Object executeAndQuery(Object prevalentSystem, Date timestamp) throws Exception {
    TodoList todoList = (TodoList) prevalentSystem;
    Todo todo = todoList.newTodo();
    todo.setDesc(desc);

    // Notify interested clients that the list just changed
    // Note that much more complex notification schemes can be devised
    // than this.
    Notification.submit(senderID, "ListChanged", todoList);
View Full Code Here

Examples of org.springframework.social.foursquare.api.Todo

  public void markTodo() {
    mockServer.expect(requestTo("https://api.foursquare.com/v2/tips/TIP_ID/marktodo?oauth_token=ACCESS_TOKEN&v=20110609"))
      .andExpect(method(POST))
      .andRespond(withResponse(new ClassPathResource("testdata/marktodo.json", getClass()), responseHeaders));
   
    Todo todo = foursquare.tipOperations().markTodo("TIP_ID");
    assertTrue(todo != null);
    mockServer.verify();
  }
View Full Code Here

Examples of ro.bjug.todo.api.Todo

    assertThat(dao.findAll()).isEmpty();
  }

  @Test
  public void testCRUD() {
    final Todo todo = Todo.newBuilder()
        .id(UUID.randomUUID().toString())
        .email("john@example.com")
        .build();

    dao.createTableIfNotExists();
    dao.insert(todo);

    assertThat(dao.exists(todo.getId())).isTrue();
    assertThat(dao.exists("dummy-missing-id")).isFalse();

    assertThat(dao.findAll()).contains(todo);
    assertThat(dao.findById(todo.getId())).isEqualTo(todo);

    final Item item = Item.newBuilder()
        .title("Something")
        .created(new Date())
        .build();

    Todo updated = todo.toBuilder().item(item).build();
    dao.update(updated);

    assertThat(dao.findById(updated.getId())).isEqualTo(updated);

    dao.delete(updated.getId());
    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.