Merge branch '322-forum-sharing-client' into 'master'

Forum Sharing Client Backend

This MR replaces the old `ForumSharingManagerImpl` with a new one
which is based on state machines and the `ProtocolEngine`.

There is a `SharerEngine` and a `InviteeEngine` that take care of state
transitions, messages, events and trigger actions to be carried out by
the `ForumSharingManagerImpl`. This is all very similar to the
Introduction Client.

The general sharing paradigm has been changed from sharing as a state to
sharing as an action. Now the UI can allow users to invite contacts to
forums. The contacts can accept or decline the invitation. Also, the
Forum Sharing Manager is notified when users leave a forum.

Please note that you will need the UI to actually test this. It is coming up soon in another MR.

Closes #322

See merge request !170
This commit is contained in:
akwizgran
2016-05-09 16:30:21 +00:00
28 changed files with 1735 additions and 353 deletions

View File

@@ -5,7 +5,7 @@ import org.junit.Test;
import static org.junit.Assert.fail;
public class ForumListValidatorTest extends BriarTestCase {
public class ForumSharingValidatorTest extends BriarTestCase {
@Test
public void testUnitTestsExist() {

View File

@@ -118,7 +118,7 @@ public class IntroductionManagerImplTest extends BriarTestCase {
clock = context.mock(Clock.class);
introductionManager = new IntroductionManagerImpl(
db, clientHelper, metadataParser, clock, introducerManager,
db, clientHelper, metadataParser, introducerManager,
introduceeManager, introductionGroupFactory
);
}