assertEquals(filer.getRecordCount(), THREADS * ITERATIONS);
for (int i = 0; i < THREADS; i++) {
for (int ii = 0; ii < ITERATIONS; ii++) {
Key key = new Key("T" + i + "I" + ii);
Value value = new Value("<test thread=\"" + i + "\" iteration=\"" + ii + "\"/>");
Record record = filer.readRecord(key);
assertNotNull("Record with key '" + key + "' was not found",
record);
assertEquals("Expected record with key '" + key + "', found record with key '" + record.getKey() + "'",
key, record.getKey());
assertEquals("Expected record with value '" + value + "', found record with value '" + record.getValue() + "'",
value, record.getValue());
}
}
}