| com.google.gwt.emultest.java.util.EmulTestBase org.apache.commons.collections.TestObject
All known Subclasses: org.apache.commons.collections.TestCollection, org.apache.commons.collections.TestMap, org.apache.commons.collections.TestComparator, org.apache.commons.collections.TestIterator,
TestObject | abstract public class TestObject extends EmulTestBase (Code) | | Tests base
java.lang.Object methods and contracts.
To use, simply extend this class, and implement
the
TestObject.makeObject() method.
If your
Object fails one of these tests by design,
you may still use this base set of cases. Simply override the
test case (method) your
Object fails.
author: Rodney Waldhoff version: $Id: TestObject.java,v 1.13.2.1 2004/05/22 12:14:05 scolebourne Exp $ |
COLLECTIONS_MAJOR_VERSION | final public static int COLLECTIONS_MAJOR_VERSION(Code) | | |
getCanonicalEmptyCollectionName | public String getCanonicalEmptyCollectionName(Object object)(Code) | | |
getCanonicalFullCollectionName | public String getCanonicalFullCollectionName(Object object)(Code) | | |
getCompatibilityVersion | public int getCompatibilityVersion()(Code) | | This constant makes it possible for TestMap (and other subclasses,
if necessary) to automatically check CVS for a versionX copy of a
Serialized object, so we can make sure that compatibility is maintained.
See, for example, TestMap.getCanonicalFullMapName(Map map).
Subclasses can override this variable, indicating compatibility
with earlier Collections versions.
Defaults to 1, the earliest Collections version. (Note: some
collections did not even exist in this version).
1 |
makeObject | abstract public Object makeObject()(Code) | | Return a new, empty
Object to used for testing.
|
supportsEmptyCollections | public boolean supportsEmptyCollections()(Code) | | Override this method if a subclass is testing a
Collections that cannot serialize an "empty" Collection
(e.g. Comparators have no contents)
true |
supportsFullCollections | public boolean supportsFullCollections()(Code) | | Override this method if a subclass is testing a
Collections that cannot serialize a "full" Collection
(e.g. Comparators have no contents)
true |
testObjectEqualsSelf | public void testObjectEqualsSelf()(Code) | | |
testObjectHashCodeEqualsContract | public void testObjectHashCodeEqualsContract()(Code) | | |
testObjectHashCodeEqualsSelfHashCode | public void testObjectHashCodeEqualsSelfHashCode()(Code) | | |
|
|