ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/ScheduledExecutorTest.java
(Generate patch)

Comparing jsr166/src/test/tck/ScheduledExecutorTest.java (file contents):
Revision 1.54 by jsr166, Sun Sep 27 20:17:39 2015 UTC vs.
Revision 1.55 by jsr166, Mon Sep 28 02:32:57 2015 UTC

# Line 665 | Line 665 | public class ScheduledExecutorTest exten
665              tasks.add(p.scheduleAtFixedRate(r, 9, 9, SECONDS));
666              tasks.add(p.scheduleWithFixedDelay(r, 9, 9, SECONDS));
667          }
668 <        assertEquals(new HashSet(tasks), new HashSet(p.getQueue()));
668 >        if (testImplementationDetails)
669 >            assertEquals(new HashSet(tasks), new HashSet(p.getQueue()));
670          final List<Runnable> queuedTasks;
671          try {
672              queuedTasks = p.shutdownNow();
# Line 674 | Line 675 | public class ScheduledExecutorTest exten
675          }
676          assertTrue(p.isShutdown());
677          assertTrue(p.getQueue().isEmpty());
678 <        assertEquals(new HashSet(tasks), new HashSet(queuedTasks));
678 >        if (testImplementationDetails)
679 >            assertEquals(new HashSet(tasks), new HashSet(queuedTasks));
680          assertEquals(tasks.size(), queuedTasks.size());
681          for (ScheduledFuture task : tasks) {
682              assertFalse(task.isDone());

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines