|
|
@@ -15,8 +15,10 @@ import java.io.ObjectInputStream;
|
|
|
import java.io.ObjectOutputStream;
|
|
|
import java.lang.reflect.InvocationTargetException;
|
|
|
import java.lang.reflect.Method;
|
|
|
+import java.util.Arrays;
|
|
|
import java.util.Collection;
|
|
|
import java.util.Iterator;
|
|
|
+import java.util.Set;
|
|
|
import java.util.function.BiPredicate;
|
|
|
import java.util.function.Predicate;
|
|
|
|
|
|
@@ -199,6 +201,10 @@ public final class NewAssert extends org.junit.Assert {
|
|
|
assertArrayEquals((E[])mValues.invoke(null), (E[])mValues.invoke(null));
|
|
|
}
|
|
|
|
|
|
+ public static <T> boolean assertEquivalent(Collection<T> a, Collection<T> b) {
|
|
|
+ return a.size()==b.size() && a.containsAll(b) && b.containsAll(a);
|
|
|
+ }
|
|
|
+
|
|
|
public interface Action {
|
|
|
|
|
|
void run() throws Exception;
|