@Test public void testOnInviteMessageInAnyStateWhenNotSubscribed() throws Exception { expectAbortWhenNotSubscribedToGroup(); CreatorSession session = getDefaultSession(LEFT); CreatorSession newSession = engine.onInviteMessage(txn, session, inviteMessage); assertEquals(ERROR, newSession.getState()); expectAbortWhenNotSubscribedToGroup(); session = getDefaultSession(START); newSession = engine.onInviteMessage(txn, session, inviteMessage); assertSessionAborted(session, newSession); }
@Override public CreatorSession onInviteMessage(Transaction txn, CreatorSession s, InviteMessage m) throws DbException, FormatException { return abort(txn, s); }
CreatorProtocolEngine extends AbstractProtocolEngine<CreatorSession> { @Override public CreatorSession onInviteMessage(Transaction txn, CreatorSession s, InviteMessage m) throws DbException, FormatException { return abort(txn, s); } }
CreatorProtocolEngine extends AbstractProtocolEngine<CreatorSession> { @Override public CreatorSession onInviteMessage(Transaction txn, CreatorSession s, InviteMessage m) throws DbException, FormatException { return abort(txn, s); } CreatorProtocolEngine(DatabaseComponent db, ClientHelper clientHelper,
			ClientVersioningManager clientVersioningManager,
			PrivateGroupManager privateGroupManager,
			PrivateGroupFactory privateGroupFactory,
			GroupMessageFactory groupMessageFactory,
			IdentityManager identityManager, MessageParser messageParser,
			MessageEncoder messageEncoder, MessageTracker messageTracker,
			Clock clock); }
CreatorProtocolEngine extends AbstractProtocolEngine<CreatorSession> { @Override public CreatorSession onInviteMessage(Transaction txn, CreatorSession s, InviteMessage m) throws DbException, FormatException { return abort(txn, s); } CreatorProtocolEngine(DatabaseComponent db, ClientHelper clientHelper,
			ClientVersioningManager clientVersioningManager,
			PrivateGroupManager privateGroupManager,
			PrivateGroupFactory privateGroupFactory,
			GroupMessageFactory groupMessageFactory,
			IdentityManager identityManager, MessageParser messageParser,
			MessageEncoder messageEncoder, MessageTracker messageTracker,
			Clock clock); @Override CreatorSession onInviteAction(Transaction txn, CreatorSession s,
			@Nullable String message, long timestamp, byte[] signature); @Override CreatorSession onJoinAction(Transaction txn, CreatorSession s); @Override CreatorSession onLeaveAction(Transaction txn, CreatorSession s); @Override CreatorSession onMemberAddedAction(Transaction txn, CreatorSession s); @Override CreatorSession onInviteMessage(Transaction txn, CreatorSession s,
			InviteMessage m); @Override CreatorSession onJoinMessage(Transaction txn, CreatorSession s,
			JoinMessage m); @Override CreatorSession onLeaveMessage(Transaction txn, CreatorSession s,
			LeaveMessage m); @Override CreatorSession onAbortMessage(Transaction txn, CreatorSession s,
			AbortMessage m); }
CreatorProtocolEngine extends AbstractProtocolEngine<CreatorSession> { @Override public CreatorSession onInviteMessage(Transaction txn, CreatorSession s, InviteMessage m) throws DbException, FormatException { return abort(txn, s); } CreatorProtocolEngine(DatabaseComponent db, ClientHelper clientHelper,
			ClientVersioningManager clientVersioningManager,
			PrivateGroupManager privateGroupManager,
			PrivateGroupFactory privateGroupFactory,
			GroupMessageFactory groupMessageFactory,
			IdentityManager identityManager, MessageParser messageParser,
			MessageEncoder messageEncoder, MessageTracker messageTracker,
			Clock clock); @Override CreatorSession onInviteAction(Transaction txn, CreatorSession s,
			@Nullable String message, long timestamp, byte[] signature); @Override CreatorSession onJoinAction(Transaction txn, CreatorSession s); @Override CreatorSession onLeaveAction(Transaction txn, CreatorSession s); @Override CreatorSession onMemberAddedAction(Transaction txn, CreatorSession s); @Override CreatorSession onInviteMessage(Transaction txn, CreatorSession s,
			InviteMessage m); @Override CreatorSession onJoinMessage(Transaction txn, CreatorSession s,
			JoinMessage m); @Override CreatorSession onLeaveMessage(Transaction txn, CreatorSession s,
			LeaveMessage m); @Override CreatorSession onAbortMessage(Transaction txn, CreatorSession s,
			AbortMessage m);  }