Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2006-05-31 13:07:52 -0400
committerrelves2006-05-31 13:07:52 -0400
commitfe1810d0c4e85af7f865520f11ff5c7b2e2ffa4f (patch)
tree85ed2cb77ca7631563cf9735c6f63e3e3e5f4760
parent29567e533390b56bdf5fe074ff9d5f8ea3813311 (diff)
downloadorg.eclipse.mylyn-fe1810d0c4e85af7f865520f11ff5c7b2e2ffa4f.tar.gz
org.eclipse.mylyn-fe1810d0c4e85af7f865520f11ff5c7b2e2ffa4f.tar.xz
org.eclipse.mylyn-fe1810d0c4e85af7f865520f11ff5c7b2e2ffa4f.zip
Progress on: 132066: streamline repository task synchronization
https://bugs.eclipse.org/bugs/show_bug.cgi?id=132066
-rw-r--r--org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/integration/ChangeDataDirTest.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/integration/ChangeDataDirTest.java b/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/integration/ChangeDataDirTest.java
index a55ded8..fa8fc40 100644
--- a/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/integration/ChangeDataDirTest.java
+++ b/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/integration/ChangeDataDirTest.java
@@ -108,16 +108,17 @@ public class ChangeDataDirTest extends TestCase {
assertEquals(readTaskBeforeMove.getCreationDate(), readTaskAfterMove.getCreationDate());
}
+ // TODO: delete? using lastOpened date wrong
public void testBugzillaTaskMove() {
String handle = AbstractRepositoryTask.getHandle("server", 1);
BugzillaTask bugzillaTask = new BugzillaTask(handle, "bug1", true);
addBugzillaTask(bugzillaTask);
Date refreshDate = new Date();
- bugzillaTask.setLastRefresh(refreshDate);
+ bugzillaTask.setLastOpened(refreshDate);
BugzillaTask readTaskBeforeMove = (BugzillaTask) manager.getTaskList().getTask(handle);
assertNotNull(readTaskBeforeMove);
- assertEquals(refreshDate, readTaskBeforeMove.getLastRefresh());
+ assertEquals(refreshDate, readTaskBeforeMove.getLastOpened());
MylarTaskListPlugin.getDefault().getTaskListSaveManager().copyDataDirContentsTo(newDataDir);
MylarPlugin.getDefault().setDataDirectory(newDataDir);
@@ -125,7 +126,7 @@ public class ChangeDataDirTest extends TestCase {
BugzillaTask readTaskAfterMove = (BugzillaTask) manager.getTaskList().getTask(handle);
assertNotNull(readTaskAfterMove);
// HACK: shoudl be checking date equality, but millis seem to differ?
- assertEquals(refreshDate.toString(), readTaskAfterMove.getLastRefresh().toString());
+ assertEquals(refreshDate.toString(), readTaskAfterMove.getLastOpened().toString());
}
private void addBugzillaTask(BugzillaTask newTask) {

Back to the top