public void testOneTask()
	{
		System.out.println("\nStarting testOneTask");
		
		tasks = tasksAccess.getTasks();
		
		assertNotNull(tasksAccess);
				
		date1.set(2013, 7, 7);
		task1.setDueDate(date1);
		
		tasksAccess.sort(0, false);
		for(int i = 0; i < tasks.size()-1; i++)
		{
			assertTrue(tasks.get(i).getTaskID() >= tasks.get(i+1).getTaskID());
		}
		
		tasksAccess.sort(0, true);
		for(int i = 0; i < tasks.size()-1; i++)
		{
			assertTrue(tasks.get(i).getTaskID() <= tasks.get(i+1).getTaskID());
		}
		
		tasksAccess.sort(1, true);
		for(int i = 0; i < tasks.size()-1; i++)
		{
			assertTrue(tasks.get(i).getTitle().compareTo(tasks.get(i+1).getTitle()) <= 0);
		}
		
		tasksAccess.sort(4, true);
		for(int i = 0; i < tasks.size()-1; i++)
		{
			assertTrue(tasks.get(i).getDueDate().compareTo(tasks.get(i+1).getDueDate()) <= 0);
		}
		
		for(int i = tasks.size()-1; i>=0; i--)
		{
			tasksAccess.deleteTask(tasks.get(i).getTaskID());
		}
		
		assertEquals(tasks.size(), 0);
		
		tasksAccess.sort(4, true);
		for(int i = 0; i < tasks.size()-1; i++)
		{
			assertTrue(tasks.get(i).getDueDate().compareTo(tasks.get(i+1).getDueDate()) <= 0);
		}
		
		assertEquals(tasks.size(), 0);
		
		tasks = tasksAccess.getTasks();
		count = tasks.size();
		
		tasksAccess.addTask(task1);
		tasks = tasksAccess.getTasks();
		
		tempDate = tasksAccess.getMinDueDate();
		assertEquals(tempDate.get(Calendar.DAY_OF_MONTH), date1.get(Calendar.DAY_OF_MONTH));
		assertEquals(tempDate.get(Calendar.MONTH), date1.get(Calendar.MONTH));
		assertEquals(tempDate.get(Calendar.YEAR), date1.get(Calendar.YEAR));
		tempDate = tasksAccess.getMaxDueDate();
		assertEquals(tempDate.get(Calendar.DAY_OF_MONTH), date1.get(Calendar.DAY_OF_MONTH));
		assertEquals(tempDate.get(Calendar.MONTH), date1.get(Calendar.MONTH));
		assertEquals(tempDate.get(Calendar.YEAR), date1.get(Calendar.YEAR));
				
		tasksAccess.sort(4, true);
		for(int i = 0; i < tasks.size()-1; i++)
		{
			assertTrue(tasks.get(i).getDueDate().compareTo(tasks.get(i+1).getDueDate()) <= 0);
		}
		
		tasksAccess.sort(3, false);
		for(int i = 0; i < tasks.size()-1; i++)
		{
			assertTrue(tasks.get(i).getStatus().compareTo(tasks.get(i+1).getStatus()) <= 0);
		}
		
		tasksAccess.sort(0, true);
		for(int i = 0; i < tasks.size()-1; i++)
		{
			assertTrue(tasks.get(i).getTaskID() <= tasks.get(i+1).getTaskID());
		}
		
		assertEquals(tasks.size(), count + 1);
		assertEquals("task1", tasks.get(tasks.size() - 1).getTitle());
		
		task1.setComments("edited");
		tasksAccess.editTask(task1);
		tasks = tasksAccess.getTasks();
		
		assertEquals(tasks.get(tasks.indexOf(task1)).getComments(), "edited");
		
		count = tasks.size();
		tasksAccess.deleteTask(task1.getTaskID());
		tasks = tasksAccess.getTasks();
		
		assertTrue(tasks.size() == count - 1);
		assertTrue(tasks.indexOf(task1) < 0);
		
		System.out.println("Finished testOneTask");
	}