From e1dca6ba6723a8657e8e043a2715e47442805227 Mon Sep 17 00:00:00 2001 From: Ondrej Dockal Date: Tue, 29 Nov 2022 15:57:35 +0100 Subject: [PATCH] Remove mylyn related tests Signed-off-by: Ondrej Dockal --- pom.xml | 2 +- .../test/ui/ide/RepoConnectionDialogTest.java | 75 ------------------- 2 files changed, 1 insertion(+), 76 deletions(-) delete mode 100644 tests/org.eclipse.reddeer.eclipse.test/src/org/eclipse/reddeer/eclipse/test/ui/ide/RepoConnectionDialogTest.java diff --git a/pom.xml b/pom.xml index 41106582db..aec8273c6d 100755 --- a/pom.xml +++ b/pom.xml @@ -26,7 +26,7 @@ https://download.eclipse.org/technology/swtbot/snapshots/ https://download.eclipse.org/tools/orbit/downloads/latest-R/ - + https://repo.eclipse.org/content/repositories/cbi-releases/ 1.2.1 17 diff --git a/tests/org.eclipse.reddeer.eclipse.test/src/org/eclipse/reddeer/eclipse/test/ui/ide/RepoConnectionDialogTest.java b/tests/org.eclipse.reddeer.eclipse.test/src/org/eclipse/reddeer/eclipse/test/ui/ide/RepoConnectionDialogTest.java deleted file mode 100644 index 3e0347b542..0000000000 --- a/tests/org.eclipse.reddeer.eclipse.test/src/org/eclipse/reddeer/eclipse/test/ui/ide/RepoConnectionDialogTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Red Hat, Inc and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Red Hat, Inc - initial API and implementation - *******************************************************************************/ -package org.eclipse.reddeer.eclipse.test.ui.ide; - -import static org.junit.Assert.assertTrue; - -import org.eclipse.reddeer.eclipse.equinox.security.ui.storage.PasswordProvider; -import org.eclipse.reddeer.eclipse.equinox.security.ui.storage.StoragePreferencePage; -import org.eclipse.reddeer.eclipse.mylyn.tasks.ui.views.TaskRepositoriesView; -import org.eclipse.reddeer.eclipse.mylyn.tasks.ui.views.TaskRepository; -import org.eclipse.reddeer.eclipse.mylyn.tasks.ui.wizards.TaskRepositoryWizardDialog; -import org.eclipse.reddeer.junit.runner.RedDeerSuite; -import org.eclipse.reddeer.workbench.ui.dialogs.WorkbenchPreferenceDialog; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; - -/** - * - * @author ldimaggi - * - */ -@RunWith(RedDeerSuite.class) -public class RepoConnectionDialogTest { - TaskRepositoryWizardDialog repoConnectionDialog = null; - - @Before - public void disableSecureStorage() { - setEnabledMasterPasswordPrompt(false); - } - - @Test - public void getDialogTest() { - TaskRepositoriesView repositoriesView = new TaskRepositoriesView(); - repositoriesView.open(); - TaskRepository repo = repositoriesView.getTaskRepository("Local"); - repoConnectionDialog = repo.openProperties(); - assertTrue ("Properties title matches", repoConnectionDialog.getShell().getText().equals("Properties for Task Repository")); - repoConnectionDialog.cancel(); - repoConnectionDialog = null; - } - - @After - public void tearDown(){ - if (repoConnectionDialog != null){ - repoConnectionDialog.cancel(); - } - - setEnabledMasterPasswordPrompt(true); - } - - private void setEnabledMasterPasswordPrompt(boolean enabled) { - WorkbenchPreferenceDialog preferenceDialog = new WorkbenchPreferenceDialog(); - StoragePreferencePage storagePage = new StoragePreferencePage(preferenceDialog); - - preferenceDialog.open(); - preferenceDialog.select(storagePage); - - for (PasswordProvider provider: storagePage.getMasterPasswordProviders()) { - provider.setEnabled(enabled); - } - storagePage.apply(); - preferenceDialog.ok(); - } -}