@Test(expected = Database.NotStoredException.class) public void updatingTaskWithoutUuidThrowsException() throws Exception { mDatabase.update(mTask); }
@Override public void update(Task task) throws NotStoredException { if (task.uuid == null) throw new NotStoredException(); mTaskwarrior.modify(task.uuid, task.description, translateStatus(task.done)); }
TaskwarriorDatabase implements Database { @Override public void update(Task task) throws NotStoredException { if (task.uuid == null) throw new NotStoredException(); mTaskwarrior.modify(task.uuid, task.description, translateStatus(task.done)); } }
TaskwarriorDatabase implements Database { @Override public void update(Task task) throws NotStoredException { if (task.uuid == null) throw new NotStoredException(); mTaskwarrior.modify(task.uuid, task.description, translateStatus(task.done)); } TaskwarriorDatabase(Parser parser, Taskwarrior taskwarrior, Translator translator); }
TaskwarriorDatabase implements Database { @Override public void update(Task task) throws NotStoredException { if (task.uuid == null) throw new NotStoredException(); mTaskwarrior.modify(task.uuid, task.description, translateStatus(task.done)); } TaskwarriorDatabase(Parser parser, Taskwarrior taskwarrior, Translator translator); @Override Task[] select(); @Override void insert(Task task); @Override void update(Task task); }
TaskwarriorDatabase implements Database { @Override public void update(Task task) throws NotStoredException { if (task.uuid == null) throw new NotStoredException(); mTaskwarrior.modify(task.uuid, task.description, translateStatus(task.done)); } TaskwarriorDatabase(Parser parser, Taskwarrior taskwarrior, Translator translator); @Override Task[] select(); @Override void insert(Task task); @Override void update(Task task);  }