Index: TestHarness4LAMS2/src/org/lamsfoundation/testharness/MockUser.java =================================================================== diff -u -r5773f84ed608838de3521ecde87c52f3c72d478c -r797ce058f0a0a06bf182256999c0ef24cc3ea735 --- TestHarness4LAMS2/src/org/lamsfoundation/testharness/MockUser.java (.../MockUser.java) (revision 5773f84ed608838de3521ecde87c52f3c72d478c) +++ TestHarness4LAMS2/src/org/lamsfoundation/testharness/MockUser.java (.../MockUser.java) (revision 797ce058f0a0a06bf182256999c0ef24cc3ea735) @@ -24,12 +24,9 @@ import java.io.File; import java.io.IOException; -import java.security.MessageDigest; -import java.security.NoSuchAlgorithmException; import java.util.HashMap; import java.util.Map; -import org.apache.commons.codec.binary.Hex; import org.apache.log4j.Logger; import org.xml.sax.SAXException; @@ -49,10 +46,10 @@ " is in a daze ", " will have a cup of coffee for ", " is away for toilet " }; private static final String LOGIN_PAGE_FLAG = "j_security_check"; - private static final String INDEX_PAGE_FLAG = "images/loading.gif"; + private static final String INDEX_PAGE_FLAG = "Index page flag"; private static final String USERNAME = "j_username"; - private static final String PASSWORD = "j_password";; + private static final String PASSWORD = "j_password"; protected AbstractTest test; protected String userId; @@ -69,11 +66,6 @@ this.userId = userId; } - private static String sha1(String plaintext) throws NoSuchAlgorithmException { - MessageDigest md = MessageDigest.getInstance("SHA1"); - return new String(Hex.encodeHex(md.digest(plaintext.getBytes()))); - } - protected static boolean checkPageContains(WebResponse resp, String flag) throws IOException { return resp.getText().indexOf(flag) != -1; }