@@ -14,7 +14,7 @@ public class DeferredTest {
1414
1515 @ Test
1616 public void newWithNoInit () throws Exception {
17- new Deferred ().handler ((r , ex ) -> {
17+ new Deferred ().handler (null , (r , ex ) -> {
1818 });
1919 }
2020
@@ -24,7 +24,7 @@ public void newWithInit0() throws Exception {
2424 new Deferred (deferred -> {
2525 assertNotNull (deferred );
2626 latch .countDown ();
27- }).handler ((r , ex ) -> {
27+ }).handler (null , (r , ex ) -> {
2828 });
2929 latch .await ();
3030 }
@@ -34,11 +34,11 @@ public void newWithInit() throws Exception {
3434 new MockUnit (Request .class )
3535 .run (unit -> {
3636 CountDownLatch latch = new CountDownLatch (1 );
37- new Deferred (unit . get ( Request . class ), (req , deferred ) -> {
37+ new Deferred ((req , deferred ) -> {
3838 assertNotNull (deferred );
3939 assertEquals (unit .get (Request .class ), req );
4040 latch .countDown ();
41- }).handler ((r , ex ) -> {
41+ }).handler (unit . get ( Request . class ), (r , ex ) -> {
4242 });
4343 latch .await ();
4444 });
@@ -49,7 +49,7 @@ public void resolve() throws Exception {
4949 Object value = new Object ();
5050 CountDownLatch latch = new CountDownLatch (1 );
5151 Deferred deferred = new Deferred ();
52- deferred .handler ((result , ex ) -> {
52+ deferred .handler (null , (result , ex ) -> {
5353 assertFalse (result instanceof Deferred );
5454 assertEquals (value , result .ifGet ().get ());
5555 assertNull (ex );
@@ -64,7 +64,7 @@ public void setResolve() throws Exception {
6464 Object value = new Object ();
6565 CountDownLatch latch = new CountDownLatch (1 );
6666 Deferred deferred = new Deferred ();
67- deferred .handler ((result , ex ) -> {
67+ deferred .handler (null , (result , ex ) -> {
6868 assertFalse (result instanceof Deferred );
6969 assertEquals (value , result .ifGet ().get ());
7070 latch .countDown ();
@@ -78,7 +78,7 @@ public void reject() throws Exception {
7878 Exception cause = new Exception ();
7979 CountDownLatch latch = new CountDownLatch (1 );
8080 Deferred deferred = new Deferred ();
81- deferred .handler ((result , ex ) -> {
81+ deferred .handler (null , (result , ex ) -> {
8282 assertEquals (cause , ex );
8383 assertNull (result );
8484 latch .countDown ();
@@ -92,7 +92,7 @@ public void setReject() throws Exception {
9292 Exception cause = new Exception ();
9393 CountDownLatch latch = new CountDownLatch (1 );
9494 Deferred deferred = new Deferred ();
95- deferred .handler ((result , ex ) -> {
95+ deferred .handler (null , (result , ex ) -> {
9696 assertEquals (cause , ex );
9797 assertNull (result );
9898 latch .countDown ();
@@ -106,7 +106,7 @@ public void runResolve() throws Exception {
106106 Object value = new Object ();
107107 CountDownLatch latch = new CountDownLatch (1 );
108108 Deferred deferred = new Deferred ();
109- deferred .handler ((result , ex ) -> {
109+ deferred .handler (null , (result , ex ) -> {
110110 assertFalse (result instanceof Deferred );
111111 assertEquals (value , result .ifGet ().get ());
112112 latch .countDown ();
@@ -120,7 +120,7 @@ public void runReject() throws Exception {
120120 Exception cause = new Exception ();
121121 CountDownLatch latch = new CountDownLatch (1 );
122122 Deferred deferred = new Deferred ();
123- deferred .handler ((result , ex ) -> {
123+ deferred .handler (null , (result , ex ) -> {
124124 assertEquals (cause , ex );
125125 assertNull (result );
126126 latch .countDown ();
@@ -136,7 +136,7 @@ public void callableResolve() throws Exception {
136136 Object value = new Object ();
137137 CountDownLatch latch = new CountDownLatch (1 );
138138 Deferred deferred = new Deferred ();
139- deferred .handler ((result , ex ) -> {
139+ deferred .handler (null , (result , ex ) -> {
140140 assertFalse (result instanceof Deferred );
141141 assertEquals (value , result .ifGet ().get ());
142142 latch .countDown ();
@@ -150,7 +150,7 @@ public void callableReject() throws Exception {
150150 Exception cause = new Exception ();
151151 CountDownLatch latch = new CountDownLatch (1 );
152152 Deferred deferred = new Deferred ();
153- deferred .handler ((result , ex ) -> {
153+ deferred .handler (null , (result , ex ) -> {
154154 assertEquals (cause , ex );
155155 assertNull (result );
156156 latch .countDown ();
0 commit comments