| Hi! As I see, this is not an error. You make an error in the method declaration
public static Criterion test(Object valueError)
It expect an Object, but it should expect an array. If you change the declaration to
public static Criterion test(Object... valueError)
or
public static Criterion test(Object[] valueError)
it will work well |