Package com.davidsalter.apps.todo.model

Examples of com.davidsalter.apps.todo.model.ToDoItem


    public void testCancelDeleteConfirmedItem() {
        String expectedReturn = "confirm";

        Assert.assertNull(toDoBean.getToDelete());

        ToDoItem item = new ToDoItem();
        String returnValue = toDoBean.deleteItem(item);
        Assert.assertSame("Item to be deleted is not set correctly", item, toDoBean.getToDelete());
        Assert.assertEquals("Return path is incorrectly set", expectedReturn, returnValue);
        Assert.assertNotNull(toDoBean.getToDelete());
View Full Code Here


    public void testEditItem() {
        String expectedReturn = "edit";

        Assert.assertNotNull(toDoBean.getItem());

        ToDoItem item = new ToDoItem();
        String returnValue = toDoBean.editItem(item);
        Assert.assertSame("Item to be edited is not set correctly", item, toDoBean.getItem());
        Assert.assertEquals("Return path is incorrectly set", expectedReturn, returnValue);
    }
View Full Code Here

TOP

Related Classes of com.davidsalter.apps.todo.model.ToDoItem

Copyright © 2018 www.massapicom. 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.