File tree Expand file tree Collapse file tree
runtime/src/test/java/com/fnproject/fn/runtime Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package com .fnproject .fn .runtime ;
22
33import com .fnproject .fn .api .MethodWrapper ;
4+ import org .assertj .core .api .AbstractIntegerAssert ;
45import org .junit .Test ;
56import org .junit .runner .RunWith ;
67import org .junit .runners .Parameterized ;
@@ -34,8 +35,9 @@ public void testMethodParameterHasExpectedType() throws NoSuchMethodException {
3435 if (parameterIndex >= 0 ) {
3536 assertThat (method .getParamType (parameterIndex ).getParameterClass ()).isEqualTo (expectedType );
3637 } else {
37- assertThat (parameterIndex ).isEqualTo (-1 )
38- .withFailMessage ("You can only use non negative parameter indices or -1 to represent return value in this test suite" );
38+ AbstractIntegerAssert <?> withFailMessage = assertThat (parameterIndex )
39+ .isEqualTo (-1 )
40+ .withFailMessage ("You can only use non negative parameter indices or -1 to represent return value in this test suite" );
3941 assertThat (method .getReturnType ().getParameterClass ()).isEqualTo (expectedType );
4042 }
4143 }
You can’t perform that action at this time.
0 commit comments