mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-04 07:35:24 +02:00
[cleanup] allow tests to use deprecated API without warning
This commit is contained in:
parent
30d32355e2
commit
623844876e
2 changed files with 6 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
#Fri Feb 16 11:41:27 GMT+01:00 2007
|
||||
#Fri Feb 23 12:34:31 CET 2007
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.codeComplete.argumentPrefixes=
|
||||
org.eclipse.jdt.core.codeComplete.argumentSuffixes=
|
||||
|
@ -15,7 +15,7 @@ org.eclipse.jdt.core.compiler.doc.comment.support=enabled
|
|||
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
|
||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.autoboxing=warning
|
||||
org.eclipse.jdt.core.compiler.problem.deprecation=warning
|
||||
org.eclipse.jdt.core.compiler.problem.deprecation=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=enabled
|
||||
org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled
|
||||
org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
|
||||
|
|
|
@ -66,7 +66,10 @@ public class PreferencesTest extends RSECoreTestCase {
|
|||
|
||||
public void testDefaultUserIds() {
|
||||
IRSECoreRegistry registry = RSECorePlugin.getDefault().getRegistry();
|
||||
IRSESystemType systemType = registry.getSystemType("Local"); //$NON-NLS-1$
|
||||
//TODO should we test deprecated methods as well? Probably yes...
|
||||
IRSESystemType systemTypeDeprecated = registry.getSystemType("Local"); //$NON-NLS-1$
|
||||
IRSESystemType systemType = registry.getSystemTypeById("org.eclipse.rse.systemtype.local"); //$NON-NLS-1$
|
||||
assertEquals(systemType, systemTypeDeprecated);
|
||||
String oldValue = RSEPreferencesManager.getDefaultUserId(systemType);
|
||||
RSEPreferencesManager.setDefaultUserId(systemType, "bogus1"); //$NON-NLS-1$
|
||||
assertEquals("bogus1", RSEPreferencesManager.getDefaultUserId(systemType)); //$NON-NLS-1$
|
||||
|
|
Loading…
Add table
Reference in a new issue