blob: 80589fce73f37832aaa35018298db3a335d231c4 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2013, 2014 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
|| e.getMessage().indexOf("untrusted authentication request:") != -1
|| e.getMessage().indexOf("An unknown repository error has occurred: file is empty") != -1
|| e.getMessage()
.indexOf(
"file is empty: The file you are trying to attach is empty, does not exist, or you don't have permission to read it.") != -1;
}
}