org.eclipse.mylar.tasks.tests
Class TaskHistoryTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.eclipse.mylar.tasks.tests.TaskHistoryTest
All Implemented Interfaces:
junit.framework.Test

public class TaskHistoryTest
extends junit.framework.TestCase

Author:
Wes Coelho, Rob Elves

Field Summary
protected  TaskActivationHistory history
           
protected  TaskListManager manager
           
protected  Task task1
           
protected  Task task2
           
protected  Task task3
           
protected  Task task4
           
protected  Task task5
           
protected  TaskListView taskView
           
 
Constructor Summary
TaskHistoryTest()
           
 
Method Summary
private  void resetHistory()
           
protected  void setUp()
           
protected  void tearDown()
           
 void testArbitraryHistoryNavigation()
          Tests navigation to previous/next tasks that are chosen from a list rather than being sequentially navigated
 void testBasicHistoryNavigation()
          Tests the next task and previous task navigation.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

manager

protected TaskListManager manager

history

protected TaskActivationHistory history

taskView

protected TaskListView taskView

task1

protected Task task1

task2

protected Task task2

task3

protected Task task3

task4

protected Task task4

task5

protected Task task5
Constructor Detail

TaskHistoryTest

public TaskHistoryTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

resetHistory

private void resetHistory()

testBasicHistoryNavigation

public void testBasicHistoryNavigation()
Tests the next task and previous task navigation.


testArbitraryHistoryNavigation

public void testArbitraryHistoryNavigation()
Tests navigation to previous/next tasks that are chosen from a list rather than being sequentially navigated


tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception