static int createTestRecord(Storage storage) throws IOException { final int r = storage.createNewRecord(); DataOutputStream out = new DataOutputStream(storage.appendStream(r)); try { Random random = new Random(r); for (int i = 0; i < TIMES_LIMIT; i++) { out.writeInt(random.nextInt()); } } finally { out.close(); } return r; }
@NotNull @Override protected Storage createStorage(String fileName) throws IOException { return new CompactStorageTest.CompactStorage(fileName); }
@NotNull @Override protected Storage createStorage(String fileName) throws IOException { return new CompactStorage(fileName); }