Unit tests and fixes for DatabaseComponent(Impl).

This commit is contained in:
akwizgran
2012-09-26 11:38:26 +01:00
parent b2ee1b5332
commit 36cd02128c
3 changed files with 148 additions and 28 deletions

View File

@@ -51,6 +51,9 @@ public interface DatabaseComponent {
*/
ContactId addContact() throws DbException;
/** Adds a contact transport to the database. */
void addContactTransport(ContactTransport ct) throws DbException;
/** Adds a locally generated group message to the database. */
void addLocalGroupMessage(Message m) throws DbException;
@@ -130,6 +133,9 @@ public interface DatabaseComponent {
Map<ContactId, TransportProperties> getRemoteProperties(TransportId t)
throws DbException;
/** Returns all temporary secrets. */
Collection<TemporarySecret> getSecrets() throws DbException;
/** Returns the set of groups to which the user subscribes. */
Collection<Group> getSubscriptions() throws DbException;