public void testReqList1() throws ConnectionException, UnknownException, TimeoutException, AbortException, NotFoundException {
final String key = "_ReqList1_";
final Transaction conn = new Transaction();
try {
final RequestList readRequests = new RequestList();
final RequestList firstWriteRequests = new RequestList();
final RequestList writeRequests = new RequestList();
for (int i = 0; i < testData.length; ++i) {
if ((i % 2) == 0) {
firstWriteRequests.addWrite(testTime + key + i, testData[i]);
}
writeRequests.addWrite(testTime + key + i, testData[i]);
readRequests.addRead(testTime + key + i);
}
ResultList results = conn.req_list(firstWriteRequests);
// evaluate the first write results:
for (int i = 0; i < firstWriteRequests.size(); ++i) {
results.processWriteAt(i);
}
final RequestList requests = new RequestList(readRequests);
requests.addAll(writeRequests).addCommit();
results = conn.req_list(requests);
assertEquals(requests.size(), results.size());
// now evaluate the read results:
for (int i = 0; i < readRequests.size(); ++i) {
if ((i % 2) == 0) {
final String actual = results.processReadAt(i).stringValue();