Fix testdata creation:

* Create at least one contact
This commit is contained in:
goapunk
2018-05-02 20:49:33 +02:00
parent 1833efa51b
commit 3e5d1a0d20
4 changed files with 115 additions and 34 deletions

View File

@@ -115,6 +115,9 @@ public class TestDataCreatorImpl implements TestDataCreator {
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,