Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/AllTests.java9
-rw-r--r--org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/integration/ChangeDataDirTest.java29
-rw-r--r--org.eclipse.mylyn.tests/tests-manual.html21
3 files changed, 34 insertions, 25 deletions
diff --git a/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/AllTests.java b/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/AllTests.java
index 149adcd..600ee8b 100644
--- a/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/AllTests.java
+++ b/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/AllTests.java
@@ -21,8 +21,7 @@ import org.eclipse.mylar.internal.core.util.MylarStatusHandler;
import org.eclipse.mylar.internal.ide.MylarIdePlugin;
import org.eclipse.mylar.java.tests.AllJavaTests;
import org.eclipse.mylar.monitor.reports.tests.AllMonitorReportTests;
-import org.eclipse.mylar.monitor.tests.AllMonitorTests;
-import org.eclipse.mylar.tasklist.tests.AllTasklistTests;
+import org.eclipse.mylar.tasklist.tests.AllTaskListTests;
import org.eclipse.mylar.tests.integration.AllIntegrationTests;
import org.eclipse.mylar.tests.misc.AllMiscTests;
import org.eclipse.mylar.tests.xml.AllXmlTests;
@@ -41,16 +40,16 @@ public class AllTests {
// TODO: the order of these tests might still matter, but shouldn't
// $JUnit-BEGIN$
suite.addTest(AllMonitorReportTests.suite());
- suite.addTest(AllMonitorTests.suite());
- suite.addTest(AllIntegrationTests.suite());
+// suite.addTest(AllMonitorTests.suite());
suite.addTest(AllCoreTests.suite());
suite.addTest(AllIdeTests.suite());
suite.addTest(AllJavaTests.suite());
- suite.addTest(AllTasklistTests.suite());
+ suite.addTest(AllTaskListTests.suite());
suite.addTest(AllXmlTests.suite());
suite.addTest(AllBugzillaTests.suite());
// suite.addTest(AllJiraTests.suite());
suite.addTest(AllMiscTests.suite());
+ suite.addTest(AllIntegrationTests.suite());
// $JUnit-END$
return suite;
}
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 3167d46..cf92cd3 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
@@ -53,7 +53,7 @@ public class ChangeDataDirTest extends TestCase {
dir.deleteOnExit();
manager.resetTaskList();
assertTrue(manager.getTaskList().isEmpty());
- MylarTaskListPlugin.getDefault().getTaskListSaveManager().saveTaskListAndContexts();
+ MylarTaskListPlugin.getDefault().getTaskListSaveManager().saveTaskList(true);
}
protected void tearDown() throws Exception {
@@ -108,36 +108,35 @@ public class ChangeDataDirTest extends TestCase {
assertEquals(readTaskBeforeMove.getCreationDate(), readTaskAfterMove.getCreationDate());
}
- // TODO: delete? using lastOpened date wrong
+ // TODO: delete? using lastOpened date wrong
public void testBugzillaTaskMove() {
String handle = AbstractRepositoryTask.getHandle("server", 1);
BugzillaTask bugzillaTask = new BugzillaTask(handle, "bug1", true);
+ String refreshDate = (new Date()).toString();
+ bugzillaTask.setModifiedDateStamp(refreshDate);
addBugzillaTask(bugzillaTask);
- Date refreshDate = new Date();
- bugzillaTask.setLastSynchronized(refreshDate);
-
BugzillaTask readTaskBeforeMove = (BugzillaTask) manager.getTaskList().getTask(handle);
assertNotNull(readTaskBeforeMove);
- assertEquals(refreshDate, readTaskBeforeMove.getLastSynchronized());
+ assertEquals(refreshDate, readTaskBeforeMove.getLastModifiedDateStamp());
MylarTaskListPlugin.getDefault().getTaskListSaveManager().copyDataDirContentsTo(newDataDir);
MylarPlugin.getDefault().setDataDirectory(newDataDir);
-
+
BugzillaTask readTaskAfterMove = (BugzillaTask) manager.getTaskList().getTask(handle);
assertNotNull(readTaskAfterMove);
- // HACK: should be checking date equality, but millis seem to differ?
- assertEquals(refreshDate.toString(), readTaskAfterMove.getLastSynchronized().toString());
+ assertEquals(refreshDate, readTaskAfterMove.getLastModifiedDateStamp());
}
private void addBugzillaTask(BugzillaTask newTask) {
-// AbstractRepositoryClient client = MylarTaskListPlugin.getRepositoryManager().getRepositoryClient(BugzillaPlugin.REPOSITORY_KIND);
-// client.addTaskToArchive(newTask);
-
+ // AbstractRepositoryClient client =
+ // MylarTaskListPlugin.getRepositoryManager().getRepositoryClient(BugzillaPlugin.REPOSITORY_KIND);
+ // client.addTaskToArchive(newTask);
+
// TODO: put back?
-// MylarTaskListPlugin.getTaskListManager().getTaskList().internalAddTask(newTask);
+ // MylarTaskListPlugin.getTaskListManager().getTaskList().internalAddTask(newTask);
-// BugzillaTaskHandler handler = new BugzillaTaskHandler();
-// handler.addTaskToArchive(newTask);
+ // BugzillaTaskHandler handler = new BugzillaTaskHandler();
+ // handler.addTaskToArchive(newTask);
MylarTaskListPlugin.getTaskListManager().getTaskList().moveToRoot(newTask);
}
diff --git a/org.eclipse.mylyn.tests/tests-manual.html b/org.eclipse.mylyn.tests/tests-manual.html
index bc08528..1fbb53f 100644
--- a/org.eclipse.mylyn.tests/tests-manual.html
+++ b/org.eclipse.mylyn.tests/tests-manual.html
@@ -1,10 +1,16 @@
<html>
<body>
<h2>Mylar Manual Tests</h2>
+ <p><b>Help</b></p>
+ <ul>
+ <li><b>&nbsp;</b>Help &gt; Help Contents &gt; Mylar &gt; New and Noteworthy&nbsp;&nbsp;
+ [ ensure updated ]</li>
+ </ul>
<p><b>Bugzilla Client</b></p>
<ul>
- <li>Bug Editor Hyperlinking - URL Hyperlinks, Bug hyperlinks (bug# 123, bug 12312, duplicate bug links), stack trace file links</li>
+ <li>Bug Editor Hyperlinking - <font color="#FF6600">URL Hyperlinks</font>, Bug hyperlinks (bug# 123, bug 12312, duplicate bug links), stack trace file links</li>
+ <li>Ensure that when offline reports still open correctly.</li>
</ul>
<ul>
<li>Test of Search &gt; Search... &gt; Bugzilla Search tab
@@ -65,15 +71,20 @@
<li>If no override, get conflict icon to show</li>
</ul></li>
<li>Case open: should retain outgoing overlay</li>
+ <li>Case edit and save again: outgoing overlay remains (should
+ not receive conflict warning)</li>
<li>Case submit: outgoing overlay should disappear (should be no incoming
- upon synchronize)<br>&nbsp;</li>
+ upon synchronize)</li>
</ul></li>
<li>Task in CONFLICT state<ul>
<li>Case open: remains with conflict decorator</li>
<li>Case synchronize: should get option to override local changes<ul>
<li>Case overriding: overlay and changes go away</li>
- <li>Case no override: changes remain, conflict decorator appears<br>&nbsp;</li>
+ <li>Case no override: changes remain, conflict decorator appears</li>
</ul></li>
+ <li>Case edit: Currently state switches to OUTGOING which is
+ correct for now because we migrate their comment into the new
+ report<br>&nbsp;</li>
</ul>
<p></li>
<li>Query hits not yet downloaded<ul>
@@ -88,10 +99,10 @@
<li>Case open (bug editor already open):&nbsp;
User presented with dialog asking if they want to reopen
with latest version</li>
+ <li>Case Background Synchronization incoming state remains</li>
</ul></li>
<li>Case open: task opens with offline content, user asked if
- they want to refresh with incoming content.<br>
-&nbsp;</li>
+ they want to refresh with incoming content.<br>&nbsp;</li>
</ul></li>
<li>Open, modify, save, should have outgoing decorator, open report in
external browser, add comment<ul>

Back to the top