org.eigenbase.runtime
Class TimeoutQueueTupleIterTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.eigenbase.runtime.TimeoutQueueTupleIterTest
- All Implemented Interfaces:
- Test
public class TimeoutQueueTupleIterTest
- extends TestCase
Test case for TimeoutQueueTupleIter
.
Field Summary |
private long |
startTime
Timestamp at which the test started. |
private static int |
tickMillis
Multiplier which determines how long each logical clock tick lasts, and
therefore how fast the test is run. |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
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 |
tickMillis
private static final int tickMillis
- Multiplier which determines how long each logical clock tick lasts, and
therefore how fast the test is run. If you are getting sporadic problems,
raise the value. 100 seems to be too low; 200 seems to be OK on my 1.8GHz
laptop.
- See Also:
- Constant Field Values
startTime
private long startTime
- Timestamp at which the test started. All timeouts are relative to this.
TimeoutQueueTupleIterTest
public TimeoutQueueTupleIterTest(String s)
throws Exception
- Throws:
Exception
testDummy
public void testDummy()
_testTimeoutTupleIter
public void _testTimeoutTupleIter()
assertFetchNext
private void assertFetchNext(TimeoutQueueTupleIter timeoutIter,
Object expected,
long timeoutMillis)
assertFetchNextTimesOut
private void assertFetchNextTimesOut(TimeoutQueueTupleIter timeoutIter,
long timeoutMillis)
toMillis
private long toMillis(double tick)