test(number, minExpectedSegments, maxExpectedSegments, minExpectedBytes, maxExpectedBytes, false);
}
private void test(int number, int minExpectedSegments, int maxExpectedSegments, long minExpectedBytes, long maxExpectedBytes,
boolean useSSL) throws Exception {
NodeStore store = new SegmentNodeStore(storeS);
NodeBuilder rootbuilder = store.getRoot().builder();
NodeBuilder b = rootbuilder.child("store");
for (int j=0; j<=number / 1000; j++) {
NodeBuilder builder = b.child("Folder#" + j);
for (int i = 0; i <(number < 1000 ? number : 1000); i++) {
builder.child("Test#" + i).setProperty("ts", System.currentTimeMillis());
}
}
store.merge(rootbuilder, EmptyHook.INSTANCE, CommitInfo.EMPTY);
storeS.flush();
final StandbyServer server = new StandbyServer(port, storeS, useSSL);
server.start();