Skip to content

Commit 7b977ee

Browse files
committed
will make the google compiler happy...
1 parent 98c3084 commit 7b977ee

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

runtime/src/test/java/com/fnproject/fn/runtime/MethodWrapperTests.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.fnproject.fn.runtime;
22

33
import com.fnproject.fn.api.MethodWrapper;
4+
import org.assertj.core.api.AbstractIntegerAssert;
45
import org.junit.Test;
56
import org.junit.runner.RunWith;
67
import 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
}

0 commit comments

Comments
 (0)