summaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-03-26 10:02:29 +0000
committerMichael Williamson <mike@zwobble.org>2016-03-26 10:02:29 +0000
commit0d34df630603adc8d621b4a8d5f0294d322035d4 (patch)
tree08d3ef3cec7c81a52d91fb5102d4526bb93450ea /src/test/java
parent0658ba127820e083961d3f9682cfd4055ee3d71c (diff)
Use list-specific skip without Guava
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/zwobble/mammoth/tests/DeepReflectionMatcher.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/java/org/zwobble/mammoth/tests/DeepReflectionMatcher.java b/src/test/java/org/zwobble/mammoth/tests/DeepReflectionMatcher.java
index 19a8043..e0a9615 100644
--- a/src/test/java/org/zwobble/mammoth/tests/DeepReflectionMatcher.java
+++ b/src/test/java/org/zwobble/mammoth/tests/DeepReflectionMatcher.java
@@ -1,6 +1,5 @@
package org.zwobble.mammoth.tests;
-import com.google.common.collect.Iterables;
import com.google.common.collect.Sets;
import org.hamcrest.Description;
import org.hamcrest.Matcher;
@@ -18,6 +17,7 @@ import static com.google.common.collect.Iterables.any;
import static java.util.Arrays.asList;
import static org.zwobble.mammoth.internal.util.MammothIterables.lazyMap;
import static org.zwobble.mammoth.internal.util.MammothLists.eagerFilter;
+import static org.zwobble.mammoth.internal.util.MammothLists.skip;
public class DeepReflectionMatcher<T> extends TypeSafeDiagnosingMatcher<T> {
public static <T> Matcher<T> deepEquals(T value) {
@@ -79,14 +79,14 @@ public class DeepReflectionMatcher<T> extends TypeSafeDiagnosingMatcher<T> {
if (actual.size() > expected.size()) {
appendPath(mismatchDescription, path);
mismatchDescription.appendText("extra elements:" +
- indentedList(lazyMap(Iterables.skip(actual, expected.size()), DeepReflectionMatcher::describeValue)));
+ indentedList(lazyMap(skip(actual, expected.size()), DeepReflectionMatcher::describeValue)));
return false;
}
if (actual.size() < expected.size()) {
appendPath(mismatchDescription, path);
mismatchDescription.appendText("missing elements:" +
- indentedList(lazyMap(Iterables.skip(expected, actual.size()), DeepReflectionMatcher::describeValue)));
+ indentedList(lazyMap(skip(expected, actual.size()), DeepReflectionMatcher::describeValue)));
return false;
}