1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-28 02:33:18 +02:00

[tests] Add testConnectionCaseInSensitive testcase

This commit is contained in:
Martin Oberhuber 2008-06-02 16:42:00 +00:00
parent 042df7cbab
commit 74180bae8b

View file

@ -17,7 +17,10 @@ package org.eclipse.rse.tests.core.connection;
import java.util.Properties;
import org.eclipse.rse.core.IRSESystemType;
import org.eclipse.rse.core.RSECorePlugin;
import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.model.ISystemProfile;
import org.eclipse.rse.core.model.ISystemRegistry;
import org.eclipse.rse.core.subsystems.ISubSystem;
import org.eclipse.rse.tests.RSETestsPlugin;
import org.eclipse.rse.ui.ISystemPreferencesConstants;
@ -32,6 +35,26 @@ public class RSEConnectionTestCase extends RSEBaseConnectionTestCase {
super(name);
}
/**
* Check whether connections are case sensitive
*/
public void testConnectionCaseInSensitive() throws Exception {
// -test-author-:MartinOberhuber
ISystemRegistry sr = RSECorePlugin.getTheSystemRegistry();
ISystemProfile prof = RSECorePlugin.getTheSystemProfileManager().getDefaultPrivateSystemProfile();
ISystemProfile testprof = RSECorePlugin.getTheSystemProfileManager().cloneSystemProfile(prof, "testConnectionCaseInSensitive");
IHost h1 = sr.createLocalHost(testprof, "TestConn", "mober");
assertNotNull(h1);
assertEquals(h1.getAliasName(), "TestConn");
// Case variant of connection is found in profile
IHost h2 = sr.getHost(testprof, "testCONN");
assertNotNull(h2);
assertEquals(h1, h2);
sr.deleteSystemProfile(testprof);
}
/**
* Test creation of connections.
*/