mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-11 18:29:05 +01:00
Add ability to add private group test data in settings
This commit is contained in:
committed by
ialokim
parent
f8015272f4
commit
0eb0bbdc99
@@ -470,10 +470,6 @@ public class TestDataCreatorImpl implements TestDataCreator {
|
||||
|
||||
private void createRandomForumPosts(Forum forum, List<Contact> contacts,
|
||||
int numForumPosts) throws DbException {
|
||||
if (contacts.isEmpty() && LOG.isLoggable(INFO)) {
|
||||
LOG.info("No forum posts created due to missing contacts.");
|
||||
return;
|
||||
}
|
||||
List<ForumPost> posts = new ArrayList<>();
|
||||
for (int i = 0; i < numForumPosts; i++) {
|
||||
Contact contact = contacts.get(random.nextInt(contacts.size()));
|
||||
@@ -522,11 +518,6 @@ public class TestDataCreatorImpl implements TestDataCreator {
|
||||
|
||||
private void createRandomPrivateGroupMessages(PrivateGroup group,
|
||||
List<Contact> contacts, int amount) throws DbException {
|
||||
if (contacts.isEmpty() && LOG.isLoggable(INFO)) {
|
||||
LOG.info("No private group messages created " +
|
||||
"due to missing contacts.");
|
||||
return;
|
||||
}
|
||||
List<GroupMessage> messages = new ArrayList<>();
|
||||
PrivateKey creatorPrivateKey =
|
||||
identityManager.getLocalAuthor().getPrivateKey();
|
||||
|
||||
Reference in New Issue
Block a user