Added size-unlimited version of Database.getSendableMessages().

This commit is contained in:
akwizgran
2011-09-21 18:10:22 +01:00
parent eba6884281
commit 52f3b70c3f
4 changed files with 64 additions and 4 deletions

View File

@@ -826,8 +826,7 @@ public abstract class DatabaseComponentTest extends TestCase {
allowing(database).containsContact(txn, contactId);
will(returnValue(true));
// Get the sendable message IDs
oneOf(database).getSendableMessages(txn, contactId,
Integer.MAX_VALUE);
oneOf(database).getSendableMessages(txn, contactId);
will(returnValue(sendable));
// Try to add both IDs to the writer - only manage to add one
oneOf(offerWriter).writeMessageId(messageId);