Fixing assert4j assertions
This commit is contained in:
@@ -145,7 +145,7 @@ public final class FunctionTypeUtils {
|
||||
* @param type actual {@link Type} instance
|
||||
* @return instance of {@link Class} as raw representation of the provided {@link Type}
|
||||
*/
|
||||
public static Class<?> getRawType(Type type) {
|
||||
public static Class<?> getRawType(Type type) {
|
||||
return type != null ? TypeResolver
|
||||
.resolveRawClass(type instanceof GenericArrayType ? type : TypeResolver.reify(type), null) : null;
|
||||
}
|
||||
|
||||
@@ -688,7 +688,7 @@ public class BeanFactoryAwareFunctionRegistryTests {
|
||||
FunctionRegistration registration = new FunctionRegistration(new MyFunction(), "a")
|
||||
.type(FunctionTypeUtils.functionType(Integer.class, String.class));
|
||||
registry.register(registration);
|
||||
fail();
|
||||
fail("");
|
||||
}
|
||||
catch (IllegalArgumentException e) {
|
||||
// good as we expect it to fail
|
||||
@@ -698,7 +698,7 @@ public class BeanFactoryAwareFunctionRegistryTests {
|
||||
FunctionRegistration registration = new FunctionRegistration(new MyFunction(), "b")
|
||||
.type(FunctionTypeUtils.functionType(String.class, Integer.class));
|
||||
registry.register(registration);
|
||||
fail();
|
||||
fail("");
|
||||
}
|
||||
catch (IllegalArgumentException e) {
|
||||
// good as we expect it to fail
|
||||
|
||||
Reference in New Issue
Block a user