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.2.1 -r1.7.2.2 --- TestHarness4LAMS2/src/org/lamsfoundation/testharness/MockUser.java 12 Jan 2016 07:57:01 -0000 1.7.2.1 +++ TestHarness4LAMS2/src/org/lamsfoundation/testharness/MockUser.java 5 May 2016 08:08:26 -0000 1.7.2.2 @@ -2,21 +2,21 @@ * Copyright (C) 2006 LAMS Foundation (http://lamsfoundation.org) * ============================================================= * License Information: http://lamsfoundation.org/licensing/lams/2.0/ - * + * * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2.0 + * it under the terms of the GNU General Public License version 2.0 * as published by the Free Software Foundation. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 * USA - * + * * http://www.gnu.org/licenses/gpl.txt * **************************************************************** */ @@ -92,7 +92,7 @@ /** * Login to the system. - * + * * @exception TestHarnessException * :failure */ @@ -127,7 +127,7 @@ try { int seconds = 0; if (test.getMaxDelay() <= test.getMinDelay()) {// to avoid IllegalArgumentException in nextInt method on - // Random object + // Random object seconds = test.getMinDelay(); } else { seconds = test.getMinDelay() @@ -172,10 +172,12 @@ return form; } + @Override public boolean equals(Object o) { return username.equals(((MockUser) o).username); } + @Override public int hashCode() { return username.hashCode(); }