Example #1
0
        public void test_SetPassword()
        {
            MQConnection con = null;

            try {
                con = connectToServer(address, null, null);
                createNewUser(con, TEST_USERS[0], TEST_DESC[0], TEST_PASSWD[0]);

                string    newPwd = "new password";
                ErrorCode ec     = con.SetPassword(TEST_USERS[0], newPwd);
                Assert.IsTrue(ec == ErrorCode.EC_NOERROR, "SetPassword");

                con.Close();
                con = connectToServer(simpleAddress, TEST_USERS[0], newPwd);
            } finally {
                if (con != null)
                {
                    con.Close();
                }
            }
        }