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

Comparing jsr166/src/test/tck/JSR166TestCase.java (file contents):
Revision 1.252 by jsr166, Thu Jan 10 04:35:16 2019 UTC vs.
Revision 1.254 by jsr166, Wed Apr 24 17:36:09 2019 UTC

# Line 517 | Line 517 | public class JSR166TestCase extends Test
517              ExecutorsTest.suite(),
518              ExecutorCompletionServiceTest.suite(),
519              FutureTaskTest.suite(),
520 +            HashtableTest.suite(),
521              LinkedBlockingDequeTest.suite(),
522              LinkedBlockingQueueTest.suite(),
523              LinkedListTest.suite(),
# Line 1750 | Line 1751 | public class JSR166TestCase extends Test
1751          }
1752      }
1753  
1754 <    void assertImmutable(final Object o) {
1754 >    void assertImmutable(Object o) {
1755          if (o instanceof Collection) {
1756              assertThrows(
1757                  UnsupportedOperationException.class,
1758 <                new Runnable() { public void run() {
1758 <                        ((Collection) o).add(null);}});
1758 >                () -> ((Collection) o).add(null));
1759          }
1760      }
1761  
# Line 1815 | Line 1815 | public class JSR166TestCase extends Test
1815      }
1816  
1817      public void assertThrows(Class<? extends Throwable> expectedExceptionClass,
1818 <                             Runnable... throwingActions) {
1819 <        for (Runnable throwingAction : throwingActions) {
1818 >                             Action... throwingActions) {
1819 >        for (Action throwingAction : throwingActions) {
1820              boolean threw = false;
1821              try { throwingAction.run(); }
1822              catch (Throwable t) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines