public class ListSetTester<E> extends AbstractListTester<E>
set() operations on a list. Can't be invoked directly;
please see ListTestSuiteBuilder.AbstractContainerTester.ArrayWithDuplicate<E>collectioncontainer, samples| Constructor and Description |
|---|
ListSetTester() |
| Modifier and Type | Method and Description |
|---|---|
private int |
aValidIndex() |
private void |
doTestSet(E newValue) |
static java.lang.reflect.Method |
getSetNullSupportedMethod()
Returns the
Method instance for testSet_null() so that tests
of Collections.checkedCollection(java.util.Collection, Class) can suppress it
with FeatureSpecificTestSuiteBuilder.suppressing() until Sun bug 6409434 is fixed. |
void |
testSet_indexTooHigh() |
void |
testSet_indexTooLow() |
void |
testSet_null() |
void |
testSet_nullUnsupported() |
void |
testSet_replacingNull() |
void |
testSet_unsupported() |
void |
testSet_unsupportedByEmptyList() |
void |
testSet() |
expectContents, getListactualContents, createArrayWithNullElement, expectNullMissingWhenNullUnsupported, initCollectionWithNullElement, resetCollection, resetContainercreateArrayWithDuplicateElement, createDisjointCollection, createOrderedArray, createSamplesArray, e0, e1, e2, e3, e4, emptyCollection, expectAdded, expectAdded, expectAdded, expectContents, expectMissing, expectUnchanged, getNullLocation, getNumElements, getOrderedElements, getSampleElements, getSampleElements, resetContainer, setUpgetName, getSubjectGenerator, getTestMethodName, init, init, tearDownassertEquals, 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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, run, run, runBare, runTest, setName, toStringpublic void testSet()
public void testSet_null()
public void testSet_replacingNull()
private void doTestSet(E newValue)
public void testSet_indexTooLow()
public void testSet_indexTooHigh()
public void testSet_unsupported()
public void testSet_unsupportedByEmptyList()
public void testSet_nullUnsupported()
private int aValidIndex()
public static java.lang.reflect.Method getSetNullSupportedMethod()
Method instance for testSet_null() so that tests
of Collections.checkedCollection(java.util.Collection, Class) can suppress it
with FeatureSpecificTestSuiteBuilder.suppressing() until Sun bug 6409434 is fixed.
It's unclear whether nulls were to be permitted or forbidden, but presumably the eventual fix
will be to permit them, as it seems more likely that code would depend on that behavior than on
the other. Thus, we say the bug is in set(), which fails to support null.