TestInfo[] testBlock0 = queue.getTestBlocks().get(0);
TestInfo[] testBlock1 = queue.getTestBlocks().get(1);
// Get the first test block.
{
TestBlock block = queue.getTestBlock(createClientInfo(0), 0,
timeout);
assertEquals(testBlock0, block.getTests());
assertEquals(0, block.getIndex());
}
// Get the second test block.
{
TestBlock block = queue.getTestBlock(createClientInfo(0), 1,
timeout);
assertEquals(testBlock1, block.getTests());
assertEquals(1, block.getIndex());
}
// Get the third test block.
{
assertNull(queue.getTestBlock(createClientInfo(0), 2, timeout));