Move back to previous way of creating at least one test contact

This commit is contained in:
Torsten Grote
2018-09-19 11:37:13 -03:00
parent b3b40753d8
commit 90e82357ba
3 changed files with 4 additions and 3 deletions

View File

@@ -116,6 +116,8 @@ public class TestDataCreatorImpl implements TestDataCreator {
@Override
public void createTestData(int numContacts, int numPrivateMsgs,
int numBlogPosts, int numForums, int numForumPosts) {
if (numContacts == 0) throw new IllegalArgumentException(
"Number of contacts must be >= 1");
ioExecutor.execute(() -> {
try {
createTestDataOnIoExecutor(numContacts, numPrivateMsgs,