Added BitmessageContext method to resent unacknowledged messages and updated README.md

This commit is contained in:
2016-05-23 20:11:44 +02:00
parent 14849a82ea
commit ed6344c662
3 changed files with 60 additions and 15 deletions

View File

@ -309,7 +309,7 @@ public class BitmessageContextTest {
assertTrue(plaintext.getTo().has(Pubkey.Feature.DOES_ACK));
when(ctx.messages().findMessagesToResend()).thenReturn(Collections.singletonList(plaintext));
when(ctx.messages().getMessage(any(byte[].class))).thenReturn(plaintext);
ctx.internals().resendUnacknowledged();
ctx.resendUnacknowledgedMessages();
verify(ctx.labeler(), timeout(1000).times(1)).markAsSent(eq(plaintext));
}
}