@GwtCompatible public abstract class AbstractListIndexOfTester<E> extends AbstractListTester<E>
ListIndexOfTester
and
ListLastIndexOfTester
.AbstractContainerTester.ArrayWithDuplicate<E>
collection
container, samples
Constructor and Description |
---|
AbstractListIndexOfTester() |
Modifier and Type | Method and Description |
---|---|
protected abstract int |
find(Object o)
Override to call
indexOf() or lastIndexOf() . |
protected abstract String |
getMethodName()
Override to return "indexOf" or "lastIndexOf()" for use in failure
messages.
|
void |
testFind_no() |
void |
testFind_nonNullWhenNullContained() |
void |
testFind_nullContained() |
void |
testFind_nullNotContainedAndUnsupported() |
void |
testFind_nullNotContainedButSupported() |
void |
testFind_wrongType() |
void |
testFind_yes() |
expectContents, getList
actualContents, createArrayWithNullElement, expectNullMissingWhenNullUnsupported, initCollectionWithNullElement, resetCollection, resetContainer
createArrayWithDuplicateElement, createDisjointCollection, createOrderedArray, createSamplesArray, emptyCollection, expectAdded, expectAdded, expectAdded, expectContents, expectMissing, expectUnchanged, getNullLocation, getNumElements, getOrderedElements, getSampleElements, getSampleElements, resetContainer, setUp
getName, getSubjectGenerator, getTestMethodName, init, init, tearDown
countTestCases, createResult, run, run, runBare, runTest, setName, toString
assertEquals, 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, format
protected abstract int find(Object o)
indexOf()
or lastIndexOf()
.protected abstract String getMethodName()
public void testFind_yes()
public void testFind_no()
public void testFind_nullNotContainedButSupported()
public void testFind_nullNotContainedAndUnsupported()
public void testFind_nonNullWhenNullContained()
public void testFind_nullContained()
public void testFind_wrongType()
Copyright © 2010-2014. All Rights Reserved.