Apply workaround to use an object array argument
See junit-team/junit5#2708.
@@ -256,8 +256,7 @@ class StandardComparisonStrategy_areEqual_Test {
}
private static Stream<Object> arrays() {
- return Stream.of(
-// new Object[] { "Luke", "Yoda", "Leia" }, // FIXME junit-team/junit5#2708
+ return Stream.of(argument(new Object[] { "Luke", "Yoda", "Leia" }),
new byte[] { 1, 2, 3 },
new short[] { 1, 2, 3 },
new int[] { 1, 2, 3 },
@@ -268,6 +267,11 @@ class StandardComparisonStrategy_areEqual_Test {
new boolean[] { true, false });
}
+ // https://github.com/junit-team/junit5/issues/2708
+ private static Arguments argument(Object[] array) {
+ return () -> new Object[] { array };
+ }
+
@Test
void should_fail_if_equals_implementation_fails() {
// GIVEN
