Package org.nxplanner.domain

Examples of org.nxplanner.domain.Task


        assertTrue("txn commit not called", support.connection.commitCalled);
        assertTrue("reset called", !editorForm.resetCalled);
    }

    public void testActionUpdateEntry() throws Exception {
        Task task = new Task();
        task.setEstimatedHours(4.0);
        mockSession.loadReturn = task;
        setUpTimeEntries();
        editorForm.setAction(UpdateTimeAction.UPDATE_TIME_ACTION);
        editorForm.setEntryId(0, "1");
        editorForm.setStartTime(0, DATE_1a);
View Full Code Here


        assertTrue("txn commit not called", support.connection.commitCalled);
        assertTrue("reset called", !editorForm.resetCalled);
    }

    public void testActionDeleteEntry() throws Exception {
        Task task = new Task();
        task.setEstimatedHours(4.0);
        mockSession.loadReturn = task;
        setUpTimeEntries();
        editorForm.setAction(UpdateTimeAction.UPDATE_TIME_ACTION);
        editorForm.setEntryId(0, "1");
        editorForm.setStartTime(0, DATE_1a);
View Full Code Here

        assertTrue("txn commit not called", support.connection.commitCalled);
        assertTrue("reset not called", editorForm.resetCalled);
    }

    public void testActionDeleteAndUpdate() throws Exception {
        Task task = new Task();
        task.setEstimatedHours(4.0);
        mockSession.loadReturn = task;
        setUpTimeEntries();
        editorForm.setAction(UpdateTimeAction.UPDATE_TIME_ACTION);
        editorForm.setEntryId(0, "1");
        editorForm.setStartTime(0, DATE_1a);
View Full Code Here

        Logger.getRootLogger().setLevel(logLevel);
        GlobalSessionFactory.set(null);
    }

    public void testPopulateFormWithoutTimeEntries() throws Exception {
        Task task = new Task();
        task.setAcceptorId(44);
        mockSession.find2Return = new ArrayList();
        mockSession.loadReturn = task;
        replay();

        support.executeAction(action);
View Full Code Here

        assertEquals("wrong forward", "editor.jsp", forward.getPath());
        assertTrue("txn rollback not called", support.connection.rollbackCalled);
    }

    public void testActionCreateEntry() throws Exception {
        Task task = new Task();
        task.setEstimatedHours(4.0);
        mockSession.loadReturn = task;

        editorForm.setAction(UpdateTimeAction.UPDATE_TIME_ACTION);
        editorForm.setEntryId(0, "0");
        editorForm.setStartTime(0, DATE_1a);
View Full Code Here

        assertTrue("txn commit not called", support.connection.commitCalled);
        assertTrue("reset called", !editorForm.resetCalled);
    }

    public void testActionEditEntryNoEndTime() throws Exception {
        Task task = new Task();
        task.setEstimatedHours(4.0);
        mockSession.loadReturn = task;
        setUpTimeEntries();

        editorForm.setAction(UpdateTimeAction.UPDATE_TIME_ACTION);
        editorForm.setEntryId(0, "1");
View Full Code Here

        assertTrue("not redirected", forward.getRedirect());
        assertTrue("txn commit not called", support.connection.commitCalled);
    }

    public void testActionCreateEntryNoStartTime() throws Exception {
        Task task = new Task();
        task.setEstimatedHours(4.0);
        mockSession.loadReturn = task;
        editorForm.setAction(UpdateTimeAction.UPDATE_TIME_ACTION);
        editorForm.setEntryId(0, "0");
        editorForm.setEndTime(0, DATE_2a);
        editorForm.setReportDate(0, DATE_1c);
View Full Code Here

        assertTrue("txn commit not called", support.connection.commitCalled);
        assertTrue("reset called", !editorForm.resetCalled);
    }

    public void testActionUpdateEntry() throws Exception {
        Task task = new Task();
        task.setEstimatedHours(4.0);
        mockSession.loadReturn = task;
        setUpTimeEntries();
        editorForm.setAction(UpdateTimeAction.UPDATE_TIME_ACTION);
        editorForm.setEntryId(0, "1");
        editorForm.setStartTime(0, DATE_1a);
View Full Code Here

        assertTrue("txn commit not called", support.connection.commitCalled);
        assertTrue("reset called", !editorForm.resetCalled);
    }

    public void testActionDeleteEntry() throws Exception {
        Task task = new Task();
        task.setEstimatedHours(4.0);
        mockSession.loadReturn = task;
        setUpTimeEntries();
        editorForm.setAction(UpdateTimeAction.UPDATE_TIME_ACTION);
        editorForm.setEntryId(0, "1");
        editorForm.setStartTime(0, DATE_1a);
View Full Code Here

        assertTrue("txn commit not called", support.connection.commitCalled);
        assertTrue("reset not called", editorForm.resetCalled);
    }

    public void testActionDeleteAndUpdate() throws Exception {
        Task task = new Task();
        task.setEstimatedHours(4.0);
        mockSession.loadReturn = task;
        setUpTimeEntries();
        editorForm.setAction(UpdateTimeAction.UPDATE_TIME_ACTION);
        editorForm.setEntryId(0, "1");
        editorForm.setStartTime(0, DATE_1a);
View Full Code Here

TOP

Related Classes of org.nxplanner.domain.Task

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.