public abstract class ApacheSetTestCase extends AbstractTestSet
AbstractTestSet to enable testing of the OpenRDF Model
collection implementations.collection, confirmedCOLLECTIONS_MAJOR_VERSION| Constructor and Description |
|---|
ApacheSetTestCase(String name) |
| Modifier and Type | Method and Description |
|---|---|
abstract Object[] |
convert(Object[] seeds)
A method that must be overridden to generate a set of non-null elements using the given seets.
|
Literal |
createLiteral(Object seed)
Creates a literal using the value of the seed.
|
IRI |
createURI(Object seed)
Creates a URI using the given seed in both the prefix and the suffix of the URI.
|
Object[] |
getFullNonNullElements()
Converts the standard list of elements returned by the super class implementation of
AbstractTestCollection.getFullNonNullElements() into a set of objects suitable for insertion
into a Model. |
abstract Object |
getOneElement() |
Object[] |
getOtherNonNullElements()
Converts the standard list of elements returned by the super class implementation of
AbstractTestCollection.getFullNonNullElements() into a set of objects suitable for insertion
into a Model. |
boolean |
isNullSupported()
Override this method to indicate that null's are not supported by Model implementations.
|
abstract Collection |
makeConfirmedCollection()
Returns an empty Set for use in modification testing.
|
abstract Set |
makeEmptySet()
Makes an empty set.
|
void |
testSetEquals()
Tests whether the set that is under test is equal to a confirmed set.
|
getConfirmedSet, getSet, isEqualsCheckable, makeCollection, makeConfirmedFullCollection, makeFullCollection, makeFullSet, testSetHashCode, verifyareEqualElementsDistinguishable, cloneMapEntry, getFullElements, getFullNonNullStringElements, getOtherElements, getOtherNonNullStringElements, isAddSupported, isFailFastSupported, isRemoveSupported, makeObject, resetEmpty, resetFull, testCollectionAdd, testCollectionAddAll, testCollectionClear, testCollectionContains, testCollectionContainsAll, testCollectionIsEmpty, testCollectionIterator, testCollectionIteratorFailFast, testCollectionIteratorRemove, testCollectionRemove, testCollectionRemoveAll, testCollectionRetainAll, testCollectionSize, testCollectionToArray, testCollectionToArray2, testCollectionToString, testSerializeDeserializeThenCompare, testUnsupportedAdd, testUnsupportedRemovegetCanonicalEmptyCollectionName, getCanonicalFullCollectionName, getCompatibilityVersion, isTestSerialization, readExternalFormFromBytes, readExternalFormFromDisk, skipSerializedCanonicalTests, supportsEmptyCollections, supportsFullCollections, testCanonicalEmptyCollectionExists, testCanonicalFullCollectionExists, testEqualsNull, testObjectEqualsSelf, testObjectHashCodeEqualsContract, testObjectHashCodeEqualsSelfHashCode, testSimpleSerialization, writeExternalFormToBytes, writeExternalFormToDiskclone, ignoredTests, makeSuite, 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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDownpublic ApacheSetTestCase(String name)
public void testSetEquals()
testSetEquals in class AbstractTestSetpublic abstract Object getOneElement()
public boolean isNullSupported()
isNullSupported in class AbstractTestCollectionpublic abstract Set makeEmptySet()
makeEmptySet in class AbstractTestSetpublic abstract Collection makeConfirmedCollection()
makeConfirmedCollection in class AbstractTestSetpublic Object[] getFullNonNullElements()
AbstractTestCollection.getFullNonNullElements() into a set of objects suitable for insertion
into a Model.getFullNonNullElements in class AbstractTestCollectionAbstractTestCollection.getFullElements().public Object[] getOtherNonNullElements()
AbstractTestCollection.getFullNonNullElements() into a set of objects suitable for insertion
into a Model.
IMPORTANT: These elements must not be present in the results of getFullNonNullElements().
getOtherNonNullElements in class AbstractTestCollectionAbstractTestCollection.getOtherElements().public abstract Object[] convert(Object[] seeds)
seeds - public IRI createURI(Object seed)
seed - The object to use as a value to create a IRI.Copyright © 2015-2016 Eclipse Foundation. All Rights Reserved.