mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
Create Screenshot of Conversation for Manual
This commit is contained in:
@@ -1,12 +1,16 @@
|
||||
package org.briarproject.briar.api.test;
|
||||
|
||||
import org.briarproject.bramble.api.FormatException;
|
||||
import org.briarproject.bramble.api.contact.Contact;
|
||||
import org.briarproject.bramble.api.db.DbException;
|
||||
import org.briarproject.bramble.api.lifecycle.IoExecutor;
|
||||
import org.briarproject.bramble.api.nullsafety.NotNullByDefault;
|
||||
|
||||
@NotNullByDefault
|
||||
public interface TestDataCreator {
|
||||
|
||||
/**
|
||||
* Create fake test data on the DatabaseExecutor
|
||||
* Create fake test data on the IoExecutor
|
||||
*
|
||||
* @param numContacts Number of contacts to create. Must be >= 1
|
||||
* @param numPrivateMsgs Number of private messages to create for each
|
||||
@@ -18,4 +22,11 @@ public interface TestDataCreator {
|
||||
void createTestData(int numContacts, int numPrivateMsgs, int numBlogPosts,
|
||||
int numForums, int numForumPosts);
|
||||
|
||||
@IoExecutor
|
||||
Contact addContact(String name) throws DbException;
|
||||
|
||||
@IoExecutor
|
||||
void addPrivateMessage(Contact contact, String body, long time,
|
||||
boolean local) throws DbException, FormatException;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user