Fix intent of some CreatorProtocolEngine unit tests

This commit is contained in:
Torsten Grote
2016-12-07 15:07:01 -02:00
parent ba1a19d236
commit 5588855667

View File

@@ -209,9 +209,7 @@ public class CreatorProtocolEngineTest extends AbstractProtocolEngineTest {
@Test
public void testOnInviteMessageInAnyStateWhenSubscribed() throws Exception {
expectIsSubscribedPrivateGroup();
expectSetPrivateGroupVisibility(INVISIBLE);
expectSendAbortMessage();
expectAbortWhenSubscribedToGroup();
CreatorSession session = getDefaultSession(LEFT);
CreatorSession newSession =
engine.onInviteMessage(txn, session, inviteMessage);
@@ -227,9 +225,7 @@ public class CreatorProtocolEngineTest extends AbstractProtocolEngineTest {
@Test
public void testOnInviteMessageInAnyStateWhenNotSubscribed()
throws Exception {
expectIsSubscribedPrivateGroup();
expectSetPrivateGroupVisibility(INVISIBLE);
expectSendAbortMessage();
expectAbortWhenNotSubscribedToGroup();
CreatorSession session = getDefaultSession(LEFT);
CreatorSession newSession =
engine.onInviteMessage(txn, session, inviteMessage);