Fixed compiler errors in subtasks unit tests

pull/14/head
Sam Bosley 13 years ago
parent df1fae5f70
commit 0a0710030a

@ -11,7 +11,7 @@ public class SubtasksHelperTest extends SubtasksTestCase {
protected void setUp() throws Exception { protected void setUp() throws Exception {
super.setUp(); super.setUp();
createTasks(); createTasks();
updater.initializeFromSerializedTree(null, filter, DEFAULT_SERIALIZED_TREE); updater.initializeFromSerializedTree(SubtasksUpdater.ACTIVE_TASKS_ORDER, filter, DEFAULT_SERIALIZED_TREE);
} }
private Task createTask(String title, long remoteId) { private Task createTask(String title, long remoteId) {

@ -11,7 +11,7 @@ public class SubtasksMovingTest extends SubtasksTestCase {
protected void setUp() throws Exception { protected void setUp() throws Exception {
super.setUp(); super.setUp();
createTasks(); createTasks();
updater.initializeFromSerializedTree(null, filter, DEFAULT_SERIALIZED_TREE); updater.initializeFromSerializedTree(SubtasksUpdater.ACTIVE_TASKS_ORDER, filter, DEFAULT_SERIALIZED_TREE);
// Assert initial state is correct // Assert initial state is correct
expectParentAndPosition(A, null, 0); expectParentAndPosition(A, null, 0);

@ -14,7 +14,7 @@ import com.todoroo.astrid.test.DatabaseTestCase;
*/ */
public class SubtasksTestCase extends DatabaseTestCase { public class SubtasksTestCase extends DatabaseTestCase {
protected SubtasksUpdater updater; protected SubtasksUpdater<String> updater;
protected Filter filter; protected Filter filter;
/* Starting State: /* Starting State:
@ -33,7 +33,7 @@ public class SubtasksTestCase extends DatabaseTestCase {
super.setUp(); super.setUp();
filter = CoreFilterExposer.buildInboxFilter(getContext().getResources()); filter = CoreFilterExposer.buildInboxFilter(getContext().getResources());
Preferences.clear(SubtasksUpdater.ACTIVE_TASKS_ORDER); Preferences.clear(SubtasksUpdater.ACTIVE_TASKS_ORDER);
updater = new SubtasksUpdater(); updater = new SubtasksFilterUpdater();
} }
protected void expectParentAndPosition(Task task, Task parent, int positionInParent) { protected void expectParentAndPosition(Task task, Task parent, int positionInParent) {

Loading…
Cancel
Save