diff options
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/support/BugzillaTestSupportUtil.java')
-rw-r--r-- | org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/support/BugzillaTestSupportUtil.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/support/BugzillaTestSupportUtil.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/support/BugzillaTestSupportUtil.java new file mode 100644 index 000000000..8ecc3d012 --- /dev/null +++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/support/BugzillaTestSupportUtil.java @@ -0,0 +1,23 @@ +/******************************************************************************* + * Copyright (c) 2013 Frank Becker and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Frank Beckers - initial API and implementation + *******************************************************************************/ + +package org.eclipse.mylyn.bugzilla.tests.support; + +import org.eclipse.core.runtime.CoreException; + +public abstract class BugzillaTestSupportUtil { + + public static boolean isInvalidLogon(CoreException e) { + return e.getMessage().indexOf("invalid username or password") != -1 + || e.getMessage().indexOf("invalid login or password") != -1; + } + +}
\ No newline at end of file |