Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2010-03-04 20:55:41 +0000
committerrelves2010-03-04 20:55:41 +0000
commitd79a568a299f2bacebd575fed8dd8506a88cd8b4 (patch)
treebb2f5065b9eca5d5149219d59a05f802d307809e /org.eclipse.mylyn.tasks.tests
parentd69a81e052e6005c2a4d16562dcec1004ef7c0b2 (diff)
downloadorg.eclipse.mylyn.tasks-d79a568a299f2bacebd575fed8dd8506a88cd8b4.tar.gz
org.eclipse.mylyn.tasks-d79a568a299f2bacebd575fed8dd8506a88cd8b4.tar.xz
org.eclipse.mylyn.tasks-d79a568a299f2bacebd575fed8dd8506a88cd8b4.zip
303714: fix TaskActivityTimingTest
https://bugs.eclipse.org/bugs/show_bug.cgi?id=303714
Diffstat (limited to 'org.eclipse.mylyn.tasks.tests')
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskActivityTimingTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskActivityTimingTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskActivityTimingTest.java
index 7de674af6..32fb41f64 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskActivityTimingTest.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskActivityTimingTest.java
@@ -349,6 +349,7 @@ public class TaskActivityTimingTest extends TestCase {
Calendar start = Calendar.getInstance();
Calendar end = Calendar.getInstance();
+ end.setTimeInMillis(start.getTimeInMillis());
end.add(Calendar.HOUR_OF_DAY, 2);
Calendar start2 = Calendar.getInstance();
@@ -381,6 +382,7 @@ public class TaskActivityTimingTest extends TestCase {
Calendar start = Calendar.getInstance();
Calendar end = Calendar.getInstance();
+ end.setTimeInMillis(start.getTimeInMillis());
end.add(Calendar.HOUR_OF_DAY, 2);
InteractionEvent event1 = new InteractionEvent(InteractionEvent.Kind.ATTENTION, "structureKind", null,
@@ -577,6 +579,7 @@ public class TaskActivityTimingTest extends TestCase {
public void testCollapsedTiming() {
Calendar startTime1 = Calendar.getInstance();
Calendar endTime1 = Calendar.getInstance();
+ endTime1.setTimeInMillis(startTime1.getTimeInMillis());
endTime1.add(Calendar.SECOND, 20);
Calendar startTime2 = Calendar.getInstance();
@@ -622,6 +625,7 @@ public class TaskActivityTimingTest extends TestCase {
public void testCollapsedTiming2() {
Calendar startTime1 = Calendar.getInstance();
Calendar endTime1 = Calendar.getInstance();
+ endTime1.setTimeInMillis(startTime1.getTimeInMillis());
endTime1.add(Calendar.SECOND, 20);
Calendar startTime2 = Calendar.getInstance();
@@ -711,6 +715,7 @@ public class TaskActivityTimingTest extends TestCase {
// task attention events occur sequentially
Calendar startTime1 = Calendar.getInstance();
Calendar endTime1 = Calendar.getInstance();
+ endTime1.setTimeInMillis(startTime1.getTimeInMillis());
endTime1.add(Calendar.SECOND, 20);
Calendar startTime2 = Calendar.getInstance();
@@ -820,6 +825,7 @@ public class TaskActivityTimingTest extends TestCase {
Calendar activityStart = Calendar.getInstance();
Calendar activityEnd = Calendar.getInstance();
+ activityEnd.setTimeInMillis(activityStart.getTimeInMillis());
activityEnd.add(Calendar.HOUR_OF_DAY, 1);
InteractionEvent activityEvent = new InteractionEvent(InteractionEvent.Kind.ATTENTION,

Back to the top