File tree 2 files changed +7
-14
lines changed
2 files changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -11,16 +11,16 @@ repositories {
11
11
12
12
dependencyManagement {
13
13
imports {
14
- mavenBom ' com.linecorp.armeria:armeria-bom:0.88 .0'
14
+ mavenBom ' com.linecorp.armeria:armeria-bom:0.95 .0'
15
15
}
16
16
}
17
17
18
18
dependencies {
19
19
compile ' com.linecorp.armeria:armeria'
20
20
21
21
testCompile ' com.linecorp.armeria:armeria-testing-junit'
22
- testCompile ' org.assertj:assertj-core:3.12 .2'
23
- testCompile ' org.awaitility:awaitility:4.0.0-rc1 '
22
+ testCompile ' org.assertj:assertj-core:3.13 .2'
23
+ testCompile ' org.awaitility:awaitility:4.0.1 '
24
24
}
25
25
26
26
tasks. withType(JavaCompile ) {
Original file line number Diff line number Diff line change 1
- import java .util .concurrent .CompletableFuture ;
2
-
3
1
import org .junit .jupiter .api .Test ;
4
2
5
3
class FutureTest {
6
4
7
5
@ Test
8
6
void futureCallback () {
9
- System .err .println ("Thread: " + Thread .currentThread ().getName ());
10
7
11
- final CompletableFuture < Void > future = new CompletableFuture <>();
12
- final Thread thread = new Thread (() -> future . complete ( null ));
13
- thread . setName ( "t1" );
14
- thread . start ();
8
+ }
9
+
10
+ @ Test
11
+ void nettyFutureCallback () {
15
12
16
- future .handle ((unused , cause ) -> {
17
- System .err .println ("In handle. Thread: " + Thread .currentThread ().getName ());
18
- return null ;
19
- });
20
13
}
21
14
}
You can’t perform that action at this time.
0 commit comments