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:
parent
042df7cbab
commit
74180bae8b
1 changed files with 41 additions and 18 deletions
|
@ -17,7 +17,10 @@ package org.eclipse.rse.tests.core.connection;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
import org.eclipse.rse.core.IRSESystemType;
|
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.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.core.subsystems.ISubSystem;
|
||||||
import org.eclipse.rse.tests.RSETestsPlugin;
|
import org.eclipse.rse.tests.RSETestsPlugin;
|
||||||
import org.eclipse.rse.ui.ISystemPreferencesConstants;
|
import org.eclipse.rse.ui.ISystemPreferencesConstants;
|
||||||
|
@ -32,6 +35,26 @@ public class RSEConnectionTestCase extends RSEBaseConnectionTestCase {
|
||||||
super(name);
|
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.
|
* Test creation of connections.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue