Index: TestHarness4LAMS2/src/org/lamsfoundation/testharness/MockUser.java =================================================================== RCS file: /usr/local/cvsroot/TestHarness4LAMS2/src/org/lamsfoundation/testharness/MockUser.java,v diff -u -r1.7 -r1.7.2.1 --- TestHarness4LAMS2/src/org/lamsfoundation/testharness/MockUser.java 22 Jan 2014 14:11:00 -0000 1.7 +++ TestHarness4LAMS2/src/org/lamsfoundation/testharness/MockUser.java 12 Jan 2016 07:57:01 -0000 1.7.2.1 @@ -106,7 +106,7 @@ } Map params = new HashMap(); params.put(MockUser.USERNAME, username); - params.put(MockUser.PASSWORD, MockUser.sha1(password)); + params.put(MockUser.PASSWORD, password); resp = (WebResponse) new Call(wc, test, username + " login", fillForm(resp, 0, params)).execute(); if (!MockUser.checkPageContains(resp, MockUser.INDEX_PAGE_FLAG)) { MockUser.log.debug(resp.getText()); @@ -116,8 +116,6 @@ throw new RuntimeException(e); } catch (SAXException e) { throw new RuntimeException(e); - } catch (NoSuchAlgorithmException e) { - throw new RuntimeException(e); } } @@ -146,8 +144,8 @@ } } - protected WebForm fillForm(WebResponse resp, int formIndex, Map params) throws SAXException, - IOException { + protected WebForm fillForm(WebResponse resp, int formIndex, Map params) + throws SAXException, IOException { WebForm[] forms = resp.getForms(); if ((forms == null) || (forms.length <= formIndex)) { MockUser.log.debug(resp.getText()); @@ -166,8 +164,8 @@ } else if (value instanceof UploadFileSpec[]) { form.setParameter(entry.getKey(), (UploadFileSpec[]) entry.getValue()); } else { - throw new TestHarnessException("Unsupported parameter value type:" - + entry.getValue().getClass().getName()); + throw new TestHarnessException( + "Unsupported parameter value type:" + entry.getValue().getClass().getName()); } } }