File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/test/java/org/assertj/core/api/throwable Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 23
23
public class ThrowableAssert_built_from_Callable_Test {
24
24
25
25
@ Test
26
- public void should_build_ThrowableAssert_with_runtime_exception_thrown_by_runnable_code () {
26
+ public void should_build_ThrowableAssert_with_runtime_exception_thrown_by_callable_code () {
27
27
// check that actual exception is the one thrown by Callable<Void>#run
28
28
assertThatExceptionThrownBy (new Callable <Void >() {
29
29
@ Override
@@ -34,7 +34,7 @@ public Void call() {
34
34
}
35
35
36
36
@ Test
37
- public void should_build_ThrowableAssert_with_throwable_thrown_by_runnable_code () {
37
+ public void should_build_ThrowableAssert_with_throwable_thrown_by_callable_code () {
38
38
assertThatExceptionThrownBy (new Callable <Void >() {
39
39
@ Override
40
40
public Void call () throws Exception {
@@ -44,7 +44,7 @@ public Void call() throws Exception {
44
44
}
45
45
46
46
@ Test
47
- public void should_fail_if_nothing_is_thrown_by_runnable_code () throws Exception {
47
+ public void should_fail_if_nothing_is_thrown_by_callable_code () throws Exception {
48
48
try {
49
49
assertThatExceptionThrownBy (new Callable <Void >() {
50
50
@ Override
You can’t perform that action at this time.
0 commit comments