|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.junit.Assert org.apache.lucene.util.LuceneTestCase org.apache.lucene.util.BaseDocIdSetTestCase<T>
public abstract class BaseDocIdSetTestCase<T extends DocIdSet>
Base test class for DocIdSet
s.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.lucene.util.LuceneTestCase |
---|
LuceneTestCase.AwaitsFix, LuceneTestCase.BadApple, LuceneTestCase.Nightly, LuceneTestCase.Slow, LuceneTestCase.SuppressCodecs, LuceneTestCase.Weekly |
Field Summary |
---|
Constructor Summary | |
---|---|
BaseDocIdSetTestCase()
|
Method Summary | |
---|---|
void |
assertEquals(int numBits,
BitSet ds1,
T ds2)
Assert that the content of the DocIdSet is the same as the content of the BitSet . |
abstract T |
copyOf(BitSet bs,
int length)
Create a copy of the given BitSet which has length bits. |
protected static BitSet |
randomSet(int numBits,
float percentSet)
Same as randomSet(int, int) but given a load factor. |
protected static BitSet |
randomSet(int numBits,
int numBitsSet)
Create a random set which has numBitsSet of its numBits bits set. |
void |
test1Bit()
Test length=1. |
void |
test2Bits()
Test length=2. |
void |
testAgainstBitSet()
Compare the content of the set against a BitSet . |
void |
testNoBit()
Test length=0. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseDocIdSetTestCase()
Method Detail |
---|
public abstract T copyOf(BitSet bs, int length) throws IOException
BitSet
which has length
bits.
IOException
protected static BitSet randomSet(int numBits, int numBitsSet)
numBitsSet
of its numBits
bits set.
protected static BitSet randomSet(int numBits, float percentSet)
randomSet(int, int)
but given a load factor.
public void testNoBit() throws IOException
IOException
public void test1Bit() throws IOException
IOException
public void test2Bits() throws IOException
IOException
public void testAgainstBitSet() throws IOException
BitSet
.
IOException
public void assertEquals(int numBits, BitSet ds1, T ds2) throws IOException
DocIdSet
is the same as the content of the BitSet
.
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |