diff options
Diffstat (limited to 'guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java')
-rw-r--r-- | guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java b/guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java index e79ee5f..fb95223 100644 --- a/guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java +++ b/guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java @@ -16,8 +16,6 @@ package com.google.common.collect.testing; -import com.google.common.annotations.GwtCompatible; - import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; @@ -35,7 +33,6 @@ import java.util.List; * * @author George van den Driessche */ -@GwtCompatible public abstract class AbstractContainerTester<C, E> extends AbstractTester<OneSizeTestContainerGenerator<C, E>> { protected SampleElements<E> samples; @@ -113,7 +110,7 @@ public abstract class AbstractContainerTester<C, E> } protected void expectUnchanged() { - expectContents(getOrderedElements()); + expectContents(getSampleElements()); } /** @@ -124,7 +121,7 @@ public abstract class AbstractContainerTester<C, E> * of each given element has increased by one since the test collection was * created, and the number of occurrences of all other elements has not * changed. - * + * * <p>Note: This means that a test like the following will fail if * {@code collection} is a {@code Set}: * @@ -173,12 +170,6 @@ public abstract class AbstractContainerTester<C, E> return array; } - protected E[] createOrderedArray() { - E[] array = getSubjectGenerator().createArray(getNumElements()); - getOrderedElements().toArray(array); - return array; - } - public static class ArrayWithDuplicate<E> { public final E[] elements; public final E duplicate; |