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

Comparing jsr166/src/test/tck/CompletableFutureTest.java (file contents):
Revision 1.183 by jsr166, Wed Jan 4 06:09:58 2017 UTC vs.
Revision 1.184 by jsr166, Sat Mar 18 20:42:20 2017 UTC

# Line 2562 | Line 2562 | public class CompletableFutureTest exten
2562  
2563          // unspecified behavior - both source completions available
2564          try {
2565 <            assertEquals(null, h0.join());
2565 >            assertNull(h0.join());
2566              rs[0].assertValue(v1);
2567          } catch (CompletionException ok) {
2568              checkCompletedWithWrappedException(h0, ex);
2569              rs[0].assertNotInvoked();
2570          }
2571          try {
2572 <            assertEquals(null, h1.join());
2572 >            assertNull(h1.join());
2573              rs[1].assertValue(v1);
2574          } catch (CompletionException ok) {
2575              checkCompletedWithWrappedException(h1, ex);
2576              rs[1].assertNotInvoked();
2577          }
2578          try {
2579 <            assertEquals(null, h2.join());
2579 >            assertNull(h2.join());
2580              rs[2].assertValue(v1);
2581          } catch (CompletionException ok) {
2582              checkCompletedWithWrappedException(h2, ex);
2583              rs[2].assertNotInvoked();
2584          }
2585          try {
2586 <            assertEquals(null, h3.join());
2586 >            assertNull(h3.join());
2587              rs[3].assertValue(v1);
2588          } catch (CompletionException ok) {
2589              checkCompletedWithWrappedException(h3, ex);
# Line 2822 | Line 2822 | public class CompletableFutureTest exten
2822  
2823          // unspecified behavior - both source completions available
2824          try {
2825 <            assertEquals(null, h0.join());
2825 >            assertNull(h0.join());
2826              rs[0].assertInvoked();
2827          } catch (CompletionException ok) {
2828              checkCompletedWithWrappedException(h0, ex);
2829              rs[0].assertNotInvoked();
2830          }
2831          try {
2832 <            assertEquals(null, h1.join());
2832 >            assertNull(h1.join());
2833              rs[1].assertInvoked();
2834          } catch (CompletionException ok) {
2835              checkCompletedWithWrappedException(h1, ex);
2836              rs[1].assertNotInvoked();
2837          }
2838          try {
2839 <            assertEquals(null, h2.join());
2839 >            assertNull(h2.join());
2840              rs[2].assertInvoked();
2841          } catch (CompletionException ok) {
2842              checkCompletedWithWrappedException(h2, ex);
2843              rs[2].assertNotInvoked();
2844          }
2845          try {
2846 <            assertEquals(null, h3.join());
2846 >            assertNull(h3.join());
2847              rs[3].assertInvoked();
2848          } catch (CompletionException ok) {
2849              checkCompletedWithWrappedException(h3, ex);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines