test/net/java/sip/communicator/slick/protocol/jabber/TestOperationSetMultiUserChat2.java
/**
     *
     * @return Test a testsuite containing all tests to execute.
     */
@return Test a testsuite containing all tests to execute.
@return Test a testsuite containing all tests to execute .
public static Test suite()
    {
        TestSuite suite = new TestSuite();
        suite.addTest(
            new TestOperationSetMultiUserChat2("testCreateChatRoom"));
        suite.addTest(
            new TestOperationSetMultiUserChat2("testJoinRoom"));
        suite.addTest(
            new TestOperationSetMultiUserChat2("testGetJoinedChatRoom"));
        suite.addTest(
            new TestOperationSetMultiUserChat2("testFindRoom"));
        suite.addTest(
            new TestOperationSetMultiUserChat2("testInviteReject"));
        suite.addTest(
            new TestOperationSetMultiUserChat2("testInviteJoin"));
        suite.addTest(
            new TestOperationSetMultiUserChat2("testLeave"));
            new TestOperationSetMultiUserChat2("testRoomSubject"));
            new TestOperationSetMultiUserChat2("testConferenceChat"));
        suite.addTest(
            new TestOperationSetMultiUserChat2("testMemberBan"));
        suite.addTest(
            new TestOperationSetMultiUserChat2("testMemberKick"));
        /*
         * Unit tests who belong to users role functionalities are orderly added
         * below. They are added in a specific order which match a predefined
         * scenario. It's not recommended to change this order, some tests may
         * then fail.
         *
         * Please note:
         * - when the room is created, participants are considered (by default)
         *   as members (not guests).
         * - in this test suite, the room will use three participants.
         *
         * Scenario:
         * - testInitialParticipantsRoles: verify participants role in the newly
         *   created room.
         * - testRevokeMembership: administrator/owner of the room revokes
         *   membership to a participant of the room.
         * - testGrantMembership: administrator/owner of the room grants
         *   membership to the participant of the room who just loses it in the
         *   previous test.
         * - testGrantModerator: administrator/owner of the room grants
         *   moderator rights to a participant of the room.
         * - testRevokeVoice: the new moderator of the room (previous test) will
         *   revoke voice right to the remaining guest, who will become a silent
         *   member (the room currently includes the administrator/owner, the
         *   moderator from the previous test, and it remains a participant).
         * - testGrantVoice: moderator will grant voice the user he previously
         *   revokes voice right.
         * - testRevokeModerator: moderator of the room will have his rights
         *   revoked by the owner/admin of the room.
         * - testGrantAdmin: owner/admin of the room grants administrator rights
         *   to the revoked-moderator (previous test).
         * - testGrantOwnership: owner/admin of the room grants the new admin as
         *   co-owner of the room.
         * - testRevokeOwnership: owner/admin of the room revokes ownership to
         *   his co-owner (granted in previous test).
         * - testRevokeAdmin: after having been ownership-revoked, the
         *   considered member is supposed to be an administrator: here his
         *   administrative rights are revoked by owner/admin of the room.
         *
         */
        suite.addTest(
            new TestOperationSetMultiUserChat2("testInitialParticipantsRoles"));
        suite.addTest(
            new TestOperationSetMultiUserChat2("testRevokeMembership"));
        suite.addTest(
            new TestOperationSetMultiUserChat2("testGrantMembership"));
        suite.addTest(new TestOperationSetMultiUserChat2("testGrantModerator"));
        suite.addTest(new TestOperationSetMultiUserChat2("testRevokeVoice"));
        suite.addTest(new TestOperationSetMultiUserChat2("testGrantVoice"));
        suite.addTest(
            new TestOperationSetMultiUserChat2("testRevokeModerator"));
new TestOperationSetMultiUserChat2("testGrantAdmin"));
new TestOperationSetMultiUserChat2("testGrantOwnership"));
            new TestOperationSetMultiUserChat2("testRevokeOwnership"));
new TestOperationSetMultiUserChat2("testRevokeAdmin"));
        return suite;
    }
public static Test suite ( ) { TestSuite suite = new TestSuite ( ) ; suite . addTest ( new TestOperationSetMultiUserChat2 ( "testCreateChatRoom" ) ) ; suite . addTest ( new TestOperationSetMultiUserChat2 ( "testJoinRoom" ) ) ; suite . addTest ( new TestOperationSetMultiUserChat2 ( "testGetJoinedChatRoom" ) ) ; suite . addTest ( new TestOperationSetMultiUserChat2 ( "testFindRoom" ) ) ; suite . addTest ( new TestOperationSetMultiUserChat2 ( "testInviteReject" ) ) ; suite . addTest ( new TestOperationSetMultiUserChat2 ( "testInviteJoin" ) ) ; suite . addTest ( new TestOperationSetMultiUserChat2 ( "testLeave" ) ) ; suite . addTest ( new TestOperationSetMultiUserChat2 ( "testMemberBan" ) ) ; suite . addTest ( new TestOperationSetMultiUserChat2 ( "testMemberKick" ) ) ; /*
         * Unit tests who belong to users role functionalities are orderly added
         * below. They are added in a specific order which match a predefined
         * scenario. It's not recommended to change this order, some tests may
         * then fail.
         *
         * Please note:
         * - when the room is created, participants are considered (by default)
         *   as members (not guests).
         * - in this test suite, the room will use three participants.
         *
         * Scenario:
         * - testInitialParticipantsRoles: verify participants role in the newly
         *   created room.
         * - testRevokeMembership: administrator/owner of the room revokes
         *   membership to a participant of the room.
         * - testGrantMembership: administrator/owner of the room grants
         *   membership to the participant of the room who just loses it in the
         *   previous test.
         * - testGrantModerator: administrator/owner of the room grants
         *   moderator rights to a participant of the room.
         * - testRevokeVoice: the new moderator of the room (previous test) will
         *   revoke voice right to the remaining guest, who will become a silent
         *   member (the room currently includes the administrator/owner, the
         *   moderator from the previous test, and it remains a participant).
         * - testGrantVoice: moderator will grant voice the user he previously
         *   revokes voice right.
         * - testRevokeModerator: moderator of the room will have his rights
         *   revoked by the owner/admin of the room.
         * - testGrantAdmin: owner/admin of the room grants administrator rights
         *   to the revoked-moderator (previous test).
         * - testGrantOwnership: owner/admin of the room grants the new admin as
         *   co-owner of the room.
         * - testRevokeOwnership: owner/admin of the room revokes ownership to
         *   his co-owner (granted in previous test).
         * - testRevokeAdmin: after having been ownership-revoked, the
         *   considered member is supposed to be an administrator: here his
         *   administrative rights are revoked by owner/admin of the room.
         *
         */ suite . addTest ( new TestOperationSetMultiUserChat2 ( "testInitialParticipantsRoles" ) ) ; suite . addTest ( new TestOperationSetMultiUserChat2 ( "testGrantModerator" ) ) ; suite . addTest ( new TestOperationSetMultiUserChat2 ( "testRevokeVoice" ) ) ; suite . addTest ( new TestOperationSetMultiUserChat2 ( "testGrantVoice" ) ) ; suite . addTest ( new TestOperationSetMultiUserChat2 ( "testRevokeModerator" ) ) ; return suite ; }
@return Test a testsuite containing all tests to execute.
@return Test a testsuite containing all tests to execute .
//@todo the following two must be tested, they regulary fail, so we are //disabling them until fixed. //        suite.addTest( //            new TestOperationSetMultiUserChat2("testNickName")); // //        suite.addTest( //            new TestOperationSetMultiUserChat2("testRoomSubject")); // //        suite.addTest( //            new TestOperationSetMultiUserChat2("testConferenceChat")); //suite.addTest( //    new TestOperationSetMultiUserChat2("testRevokeMembership")); //suite.addTest( //    new TestOperationSetMultiUserChat2("testGrantMembership")); //        suite.addTest(new TestOperationSetMultiUserChat2("testGrantAdmin")); // //        suite.addTest(new TestOperationSetMultiUserChat2("testGrantOwnership")); // //        suite.addTest( //            new TestOperationSetMultiUserChat2("testRevokeOwnership")); // //        suite.addTest(new TestOperationSetMultiUserChat2("testRevokeAdmin"));