mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 12:02:05 +01:00
[sinttest] Use unique room names for mucJoinSemiAnonymousRoomReceivedBy*()
In order to be able to identify potential room leaks, use unique rooms names for the two integration tests. Also destroy the room in mucJoinSemiAnonymousRoomReceivedByNonModeratorTest().
This commit is contained in:
parent
41022d139b
commit
2a5cf149b2
1 changed files with 3 additions and 3 deletions
|
@ -379,7 +379,7 @@ public class MultiUserChatOccupantIntegrationTest extends AbstractMultiUserChatI
|
|||
"option), but MUST include the new occupant's full JID only in the presence notifications it sends to " +
|
||||
"occupants with a role of \"moderator\" and not to non-moderator occupants.")
|
||||
public void mucJoinSemiAnonymousRoomReceivedByNonModeratorTest() throws Exception {
|
||||
EntityBareJid mucAddress = getRandomRoom("smack-inttest-joinsemianonymousroom");
|
||||
EntityBareJid mucAddress = getRandomRoom("smack-inttest-seminanonymous-by-non-moderator");
|
||||
|
||||
MultiUserChat mucAsSeenByOne = mucManagerOne.getMultiUserChat(mucAddress);
|
||||
MultiUserChat mucAsSeenByTwo = mucManagerTwo.getMultiUserChat(mucAddress);
|
||||
|
@ -408,7 +408,7 @@ public class MultiUserChatOccupantIntegrationTest extends AbstractMultiUserChatI
|
|||
// Check the presence received by participant two for exclusion of full jid of participant three
|
||||
assertNull(MUCUser.from(presenceReceivedByTwo).getItem().getJid(), "Did not expect '" + conTwo.getUser() + "' (who is not a moderator at this stage) to receive the full JID of '" + conThree.getUser() + "' when they joined room '" + mucAddress + "' (but they did).");
|
||||
} finally {
|
||||
mucAsSeenByThree.leave(); // Reset to have a second go
|
||||
tryDestroy(mucAsSeenByOne);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -425,7 +425,7 @@ public class MultiUserChatOccupantIntegrationTest extends AbstractMultiUserChatI
|
|||
"option), but MUST include the new occupant's full JID only in the presence notifications it sends to " +
|
||||
"occupants with a role of \"moderator\" and not to non-moderator occupants.")
|
||||
public void mucJoinSemiAnonymousRoomReceivedByModeratorTest() throws Exception {
|
||||
EntityBareJid mucAddress = getRandomRoom("smack-inttest-joinsemianonymousroom");
|
||||
EntityBareJid mucAddress = getRandomRoom("smack-inttest-seminanonymous-by-moderator");
|
||||
|
||||
MultiUserChat mucAsSeenByOne = mucManagerOne.getMultiUserChat(mucAddress);
|
||||
MultiUserChat mucAsSeenByTwo = mucManagerTwo.getMultiUserChat(mucAddress);
|
||||
|
|
Loading…
Reference in a new issue