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