mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 05:09:53 +01:00
Assert that IntroductionManager return true for canIntroduce()
This commit is contained in:
committed by
Torsten Grote
parent
21348d5557
commit
950db5a87a
@@ -17,6 +17,7 @@ import org.briarproject.briar.api.introduction.IntroductionResponse;
|
|||||||
import org.briarproject.briar.api.introduction.event.IntroductionResponseReceivedEvent;
|
import org.briarproject.briar.api.introduction.event.IntroductionResponseReceivedEvent;
|
||||||
import org.briarproject.briar.autodelete.AbstractAutoDeleteTest;
|
import org.briarproject.briar.autodelete.AbstractAutoDeleteTest;
|
||||||
import org.briarproject.briar.test.BriarIntegrationTestComponent;
|
import org.briarproject.briar.test.BriarIntegrationTestComponent;
|
||||||
|
import org.junit.Assert;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
@@ -399,8 +400,14 @@ public class AutoDeleteIntegrationTest extends AbstractAutoDeleteTest {
|
|||||||
// FIRST CYCLE
|
// FIRST CYCLE
|
||||||
introduceAndAutoDecline();
|
introduceAndAutoDecline();
|
||||||
|
|
||||||
|
Assert.assertTrue(c0.getIntroductionManager()
|
||||||
|
.canIntroduce(contact1From0, contact2From0));
|
||||||
|
|
||||||
// SECOND CYCLE
|
// SECOND CYCLE
|
||||||
introduceAndAutoDecline();
|
introduceAndAutoDecline();
|
||||||
|
|
||||||
|
Assert.assertTrue(c0.getIntroductionManager()
|
||||||
|
.canIntroduce(contact1From0, contact2From0));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void introduceAndAutoDecline() throws Exception {
|
private void introduceAndAutoDecline() throws Exception {
|
||||||
|
|||||||
Reference in New Issue
Block a user