|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.commons.collections.BulkTest
org.apache.commons.collections.TestObject
org.apache.commons.collections.TestCollection
org.apache.commons.collections.TestBinaryHeap
Tests the BinaryHeap.
| Field Summary |
| Fields inherited from class org.apache.commons.collections.TestCollection |
collection, confirmed |
| Fields inherited from class org.apache.commons.collections.TestObject |
COLLECTIONS_MAJOR_VERSION |
| Fields inherited from class org.apache.commons.collections.BulkTest |
verboseName |
| Fields inherited from class junit.framework.TestCase |
|
| Constructor Summary | |
TestBinaryHeap(java.lang.String testName) |
|
| Method Summary | |
java.lang.Object[] |
getFullElements()Returns an array of objects that are contained in a collection produced by TestCollection.makeFullCollection(). |
java.lang.Object[] |
getOtherElements()Returns an array of elements that are not contained in a full collection. |
java.util.Collection |
makeCollection()Return a new, empty Object to used for testing. |
java.util.Collection |
makeConfirmedCollection()Returns a confirmed empty collection. |
java.util.Collection |
makeConfirmedFullCollection()Returns a confirmed full collection. |
static junit.framework.Test |
suite() |
void |
testBasicComparatorOps() |
void |
testBasicOps() |
void |
testCollectionIteratorFailFast()Tests that the collection's iterator is fail-fast. |
void |
verify()Verifies that TestCollection.collection and TestCollection.confirmed have identical state. |
| Methods inherited from class org.apache.commons.collections.BulkTest |
clone, ignoredSimpleTests, makeSuite, toString |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp, tearDown |
| Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TestBinaryHeap(java.lang.String testName)
| Method Detail |
public static junit.framework.Test suite()
public java.util.Collection makeCollection()
Object to used for testing.
makeCollection in class TestCollectionpublic java.util.Collection makeConfirmedCollection()
TestCollectionArrayList for lists or a HashSet for sets.
makeConfirmedCollection in class TestCollectionpublic java.util.Collection makeConfirmedFullCollection()
TestCollectionArrayList for lists or a HashSet for sets. The returned collection should contain the elements returned by TestCollection.getFullElements().
makeConfirmedFullCollection in class TestCollectionpublic java.lang.Object[] getFullElements()
TestCollectionTestCollection.makeFullCollection(). Every element in the returned array must be an element in a full collection.
The default implementation returns a heterogenous array of objects with some duplicates and with the null element. Override if you require specific testing elements. Note that if you override TestCollection.makeFullCollection(), you must override this method to reflect the contents of a full collection.
getFullElements in class TestCollectionpublic java.lang.Object[] getOtherElements()
TestCollectionTestCollection.makeFullCollection(). The default implementation returns a heterogenous array of elements without null. Note that some of the tests add these elements to an empty or full collection, so if your collection restricts certain kinds of elements, you should override this method.
getOtherElements in class TestCollectionpublic void testCollectionIteratorFailFast()
TestCollectiontestCollectionIteratorFailFast in class TestCollectionpublic void testBasicOps()
public void testBasicComparatorOps()
public void verify()
TestCollectionTestCollection.collection and TestCollection.confirmed have identical state.
verify in class TestCollection
|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||