CollabReview collabReview = AutoConfigurator.newConfiguredApplication();
ArrayList<ImportProgressInfo> ipis = new ArrayList<ImportProgressInfo>();
Importer importer = collabReview.getImporter();
importer.start();
long startTime = System.currentTimeMillis();
ImportProgressInfo currentIpi = null;
while (System.currentTimeMillis() < startTime + 10000) {
ImportProgressInfo ipi = importer.getProgressInfo();
if (!ipi.equals(currentIpi)) {
currentIpi = ipi;
ipis.add(ipi);
}
try {
Thread.sleep(10);