@GwtCompatible(emulated=true) public class CollectionToArrayTester<E> extends AbstractCollectionTester<E>
toArray() operations on a
collection. Can't be invoked directly; please see
CollectionTestSuiteBuilder.AbstractContainerTester.ArrayWithDuplicate<E>collectioncontainer, samples| Constructor and Description |
|---|
CollectionToArrayTester() |
| Modifier and Type | Method and Description |
|---|---|
static Method |
getToArrayIsPlainObjectArrayMethod()
Returns the
Method instance for
testToArray_isPlainObjectArray() so that tests of
Arrays.asList(Object[]) can suppress it with FeatureSpecificTestSuiteBuilder.suppressing() until Sun bug
6260652 is fixed. |
void |
testToArray_emptyArray_ordered() |
void |
testToArray_emptyArray() |
void |
testToArray_emptyArrayOfObject() |
void |
testToArray_emptyArrayOfWrongTypeForEmptyCollection() |
void |
testToArray_emptyArrayOfWrongTypeForNonEmptyCollection() |
void |
testToArray_isPlainObjectArray()
Collection.toArray(Object[]) says: "Note that
toArray(new Object[0]) is identical in function to
toArray()." |
void |
testToArray_noArgs() |
void |
testToArray_oversizedArray_ordered() |
void |
testToArray_oversizedArray() |
void |
testToArray_rightSizedArray_ordered() |
void |
testToArray_rightSizedArray() |
void |
testToArray_rightSizedArrayOfObject_ordered() |
void |
testToArray_rightSizedArrayOfObject() |
actualContents, createArrayWithNullElement, expectNullMissingWhenNullUnsupported, initCollectionWithNullElement, resetCollection, resetContainercreateArrayWithDuplicateElement, createDisjointCollection, createOrderedArray, createSamplesArray, e0, e1, e2, e3, e4, emptyCollection, expectAdded, expectAdded, expectAdded, expectContents, expectContents, expectMissing, expectUnchanged, getNullLocation, getNumElements, getOrderedElements, getSampleElements, getSampleElements, resetContainer, setUpgetName, getSubjectGenerator, getTestMethodName, init, init, tearDowncountTestCases, createResult, run, run, runBare, runTest, setName, toStringassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, formatpublic void testToArray_noArgs()
public void testToArray_isPlainObjectArray()
Collection.toArray(Object[]) says: "Note that
toArray(new Object[0]) is identical in function to
toArray()."
For maximum effect, the collection under test should be created from an
element array of a type other than Object[].
public void testToArray_emptyArray()
public void testToArray_emptyArray_ordered()
public void testToArray_emptyArrayOfObject()
public void testToArray_rightSizedArray()
public void testToArray_rightSizedArray_ordered()
public void testToArray_rightSizedArrayOfObject()
public void testToArray_rightSizedArrayOfObject_ordered()
public void testToArray_oversizedArray()
public void testToArray_oversizedArray_ordered()
public void testToArray_emptyArrayOfWrongTypeForNonEmptyCollection()
public void testToArray_emptyArrayOfWrongTypeForEmptyCollection()
@GwtIncompatible public static Method getToArrayIsPlainObjectArrayMethod()
Method instance for
testToArray_isPlainObjectArray() so that tests of
Arrays.asList(Object[]) can suppress it with FeatureSpecificTestSuiteBuilder.suppressing() until Sun bug
6260652 is fixed.Copyright © 2010-2016. All Rights Reserved.