Examples of Todo


Examples of etch.util.Todo

      notifies = waiters.toArray( new Notify[n] );
      waiters.clear();
    }

    TodoManager.addTodo( new Todo()
    {
      public void doit( TodoManager mgr ) throws Exception
      {
        for (Notify n : notifies)
          n.bufferAvailable( ByteBufferPool.this );
View Full Code Here

Examples of hu.lacimol.tutorial.todo.model.Todo

  @Test
  public void testComments() throws Exception {
    assertEquals(2, ao.find(Comment.class).length);

    Todo todo = ao.find(Todo.class)[0];
    assertEquals(2, todo.getComments().length);
  }
View Full Code Here

Examples of javax.microedition.pim.ToDo

        Enumeration e;
        int iElement = 0;
        try {
            e = taskList.items();
            while( e.hasMoreElements() ) {
                ToDo t = (ToDo) e.nextElement();
                TaskObject task = new TaskObject( t );
                if( testable != null ) {
                    if( testable.test( task ) ) {
                        FindNamespace.insertElementByOrder( found, task, orderByField, isAscending );
                        iElement++;
View Full Code Here

Examples of models.ToDo

        if (json != null)
        {
            for (JsonNode node: json)
            {
                ToDo incoming = Json.fromJson(node, ToDo.class);
                if (incoming.id == null)
                {
                    incoming.save();
                }
                else
                {
                    incoming.update();
                }
                saved.add(incoming);
            }
        }
View Full Code Here

Examples of models.Todo

                Result result = callAction(routes.ref.TodoController.createTodo(), fakeRequest);
               
                assertThat(status(result)).isEqualTo(OK);
               
                Todo todo = Json.fromJson(Json.parse(contentAsString(result)), Todo.class);
                assertThat(todo.id).isNotNull();
                assertThat(todo.value).isEqualTo("make it work");
                assertThat(todo.user).isNull(); // this should not be serialized
            }
        });
View Full Code Here

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

    @Transactional
    @Override
    public Todo add(TodoDTO added) {
        LOGGER.debug("Adding a new to-do entry with information: {}", added);

        Todo model = Todo.getBuilder(added.getTitle())
                .description(added.getDescription())
                .build();

        return repository.save(model);
    }
View Full Code Here

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

    @Transactional(rollbackFor = {TodoNotFoundException.class})
    @Override
    public Todo deleteById(Long id) throws TodoNotFoundException {
        LOGGER.debug("Deleting a to-do entry with id: {}", id);

        Todo deleted = findById(id);
        LOGGER.debug("Deleting to-do entry: {}", deleted);

        repository.delete(deleted);
        return deleted;
    }
View Full Code Here

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

    @Transactional(readOnly = true, rollbackFor = {TodoNotFoundException.class})
    @Override
    public Todo findById(Long id) throws TodoNotFoundException {
        LOGGER.debug("Finding a to-do entry with id: {}", id);

        Todo found = repository.findOne(id);
        LOGGER.debug("Found to-do entry: {}", found);

        if (found == null) {
            throw new TodoNotFoundException("No to-entry found with id: " + id);
        }
View Full Code Here

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

    @Transactional(rollbackFor = {TodoNotFoundException.class})
    @Override
    public Todo update(TodoDTO updated) throws TodoNotFoundException {
        LOGGER.debug("Updating contact with information: {}", updated);

        Todo model = findById(updated.getId());
        LOGGER.debug("Found a to-do entry: {}", model);

        model.update(updated.getDescription(), updated.getTitle());

        return model;
    }
View Full Code Here

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

        return dto;
    }

    public static Todo createModel(Long id, String description, String title) {
        Todo model = Todo.getBuilder(title)
                .description(description)
                .build();

        ReflectionTestUtils.setField(model, "id", id);
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.