From d272dba8f73f43d502f8b20ebaadecc080ef420f Mon Sep 17 00:00:00 2001 From: Uwe Stieber Date: Thu, 21 Dec 2006 09:51:33 +0000 Subject: [PATCH] [fix] Add missing RSE files test suite registration --- rse/tests/org.eclipse.rse.tests/plugin.xml | 3 ++ .../connection/RSEConnectionTestUtil.java | 52 ------------------- 2 files changed, 3 insertions(+), 52 deletions(-) delete mode 100644 rse/tests/org.eclipse.rse.tests/src/org/eclipse/rse/tests/core/connection/RSEConnectionTestUtil.java diff --git a/rse/tests/org.eclipse.rse.tests/plugin.xml b/rse/tests/org.eclipse.rse.tests/plugin.xml index 618b9e81bef..baac218689f 100644 --- a/rse/tests/org.eclipse.rse.tests/plugin.xml +++ b/rse/tests/org.eclipse.rse.tests/plugin.xml @@ -10,5 +10,8 @@ + + + diff --git a/rse/tests/org.eclipse.rse.tests/src/org/eclipse/rse/tests/core/connection/RSEConnectionTestUtil.java b/rse/tests/org.eclipse.rse.tests/src/org/eclipse/rse/tests/core/connection/RSEConnectionTestUtil.java deleted file mode 100644 index d1becc174bf..00000000000 --- a/rse/tests/org.eclipse.rse.tests/src/org/eclipse/rse/tests/core/connection/RSEConnectionTestUtil.java +++ /dev/null @@ -1,52 +0,0 @@ -/* ******************************************************************************* - * Copyright (c) 2006 IBM Corporation 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: - * Don Yantzi (IBM) - initial contribution. - * David Dykstal (IBM) - initial contribution. - * *******************************************************************************/ -package org.eclipse.rse.tests.core.connection; - -import org.eclipse.rse.core.model.ISystemProfile; -import org.eclipse.rse.core.model.ISystemRegistry; -import org.eclipse.rse.ui.RSEUIPlugin; - -/** - * RSEConnectionTestUtil is a collection of static utility methods for creating - * RSE system connections and associated RSE artifacts (filter pools, filters, etc...) to assist - * you in writing your JUnit plug-in testcases. - *

- * Since most JUnit PDE testcases create a brand new workspace when they start you will likely need - * to create a new RSE connection to start your testing. The "createSystemConnection(...) methods - * are therefore your most likely starting point. - *

- * Note: If your testcases subclasses AbstractSystemConnectionTest then you can use the getConnection() - * method instead. - * - * @author yantzi - */ -public class RSEConnectionTestUtil { - - - - /** - * Retrieve the default RSE system profile. If the default profile has not been renamed from the default - * name ("Private") then the profile is renamed to the DEFAULT_PROFILE_NAME specified in - * SystemConnectionTests.properties. - * @param profileName the name the default profile will become. - * @return The default RSE system profile. - * @throws Exception of the profile cannot be found - */ - public static ISystemProfile getDefaultProfile(String profileName) throws Exception { - ISystemRegistry sr = RSEUIPlugin.getTheSystemRegistry(); - ISystemProfile defaultProfile = sr.getSystemProfileManager().getDefaultPrivateSystemProfile(); - if (defaultProfile != null && defaultProfile.getName().equals("Private")) { //$NON-NLS-1$ - sr.renameSystemProfile(defaultProfile, profileName); - } - return defaultProfile; - } - -}