mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-18 13:49:53 +01:00
Update test expectations.
This commit is contained in:
@@ -131,7 +131,8 @@ public class KeyManagerImplTest extends BrambleMockTestCase {
|
|||||||
@Test
|
@Test
|
||||||
public void testGetStreamContextForContact() throws Exception {
|
public void testGetStreamContextForContact() throws Exception {
|
||||||
context.checking(new DbExpectations() {{
|
context.checking(new DbExpectations() {{
|
||||||
oneOf(db).transactionWithResult(with(false), withDbCallable(txn));
|
oneOf(db).transactionWithNullableResult(with(false),
|
||||||
|
withNullableDbCallable(txn));
|
||||||
oneOf(transportKeyManager).getStreamContext(txn, contactId);
|
oneOf(transportKeyManager).getStreamContext(txn, contactId);
|
||||||
will(returnValue(streamContext));
|
will(returnValue(streamContext));
|
||||||
}});
|
}});
|
||||||
@@ -149,7 +150,8 @@ public class KeyManagerImplTest extends BrambleMockTestCase {
|
|||||||
@Test
|
@Test
|
||||||
public void testGetStreamContextForTag() throws Exception {
|
public void testGetStreamContextForTag() throws Exception {
|
||||||
context.checking(new DbExpectations() {{
|
context.checking(new DbExpectations() {{
|
||||||
oneOf(db).transactionWithResult(with(false), withDbCallable(txn));
|
oneOf(db).transactionWithNullableResult(with(false),
|
||||||
|
withNullableDbCallable(txn));
|
||||||
oneOf(transportKeyManager).getStreamContext(txn, tag);
|
oneOf(transportKeyManager).getStreamContext(txn, tag);
|
||||||
will(returnValue(streamContext));
|
will(returnValue(streamContext));
|
||||||
}});
|
}});
|
||||||
@@ -177,7 +179,8 @@ public class KeyManagerImplTest extends BrambleMockTestCase {
|
|||||||
new ContactStatusChangedEvent(inactiveContactId, true);
|
new ContactStatusChangedEvent(inactiveContactId, true);
|
||||||
|
|
||||||
context.checking(new DbExpectations() {{
|
context.checking(new DbExpectations() {{
|
||||||
oneOf(db).transactionWithResult(with(false), withDbCallable(txn));
|
oneOf(db).transactionWithNullableResult(with(false),
|
||||||
|
withNullableDbCallable(txn));
|
||||||
oneOf(transportKeyManager).getStreamContext(txn, inactiveContactId);
|
oneOf(transportKeyManager).getStreamContext(txn, inactiveContactId);
|
||||||
will(returnValue(streamContext));
|
will(returnValue(streamContext));
|
||||||
}});
|
}});
|
||||||
|
|||||||
Reference in New Issue
Block a user