groups.addObject(group);
}
log.info("created groups: " + groups.count());
for (int i = 0; i < MAX_ASSETS; i++) {
Asset asset = Asset.clazz.createAndInsertObject(ec);
asset.setAssetGroup(randomAssetGroup());
asset.setCreationDate(randomTime());
asset.setUserCount((long) randomInt(10000));
asset.setPrice(randomPrice());
for (int j = 0; j < 10; j++) {
asset.addToTags(randomTag());
}
asset.setContent(randomText(1000));
asset.setGenericInfo(randomText(1000));
assets.addObject(asset);
}
log.info("created assets: " + assets.count());