Fixing assert4j assertions

This commit is contained in:
Ryan Baxter
2025-04-13 15:23:02 -04:00
parent e1a96eede8
commit b349f072bb
2 changed files with 3 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -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