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

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

# Line 719 | Line 719 | public class ScheduledExecutorSubclassTe
719              tasks.add(p.scheduleAtFixedRate(r, 9, 9, SECONDS));
720              tasks.add(p.scheduleWithFixedDelay(r, 9, 9, SECONDS));
721          }
722 <        assertEquals(new HashSet(tasks), new HashSet(p.getQueue()));
722 >        if (testImplementationDetails)
723 >            assertEquals(new HashSet(tasks), new HashSet(p.getQueue()));
724          final List<Runnable> queuedTasks;
725          try {
726              queuedTasks = p.shutdownNow();
# Line 728 | Line 729 | public class ScheduledExecutorSubclassTe
729          }
730          assertTrue(p.isShutdown());
731          assertTrue(p.getQueue().isEmpty());
732 <        assertEquals(new HashSet(tasks), new HashSet(queuedTasks));
732 >        if (testImplementationDetails)
733 >            assertEquals(new HashSet(tasks), new HashSet(queuedTasks));
734          assertEquals(tasks.size(), queuedTasks.size());
735          for (ScheduledFuture task : tasks) {
736              assertFalse(((CustomTask)task).ran);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines