mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-25 18:05:33 +02:00
cleanup: generics and casts
This commit is contained in:
parent
2d0198be0a
commit
05653b2740
1 changed files with 7 additions and 10 deletions
|
@ -80,6 +80,7 @@ public class ManagedBuildCoreTests20 extends TestCase {
|
||||||
public static Test suite() {
|
public static Test suite() {
|
||||||
TestSuite suite = new TestSuite(ManagedBuildCoreTests20.class.getName());
|
TestSuite suite = new TestSuite(ManagedBuildCoreTests20.class.getName());
|
||||||
|
|
||||||
|
// Note that some of the tests are dependent on others so run the suite as a whole
|
||||||
suite.addTest(new ManagedBuildCoreTests20("testExtensions"));
|
suite.addTest(new ManagedBuildCoreTests20("testExtensions"));
|
||||||
suite.addTest(new ManagedBuildCoreTests20("testProjectCreation"));
|
suite.addTest(new ManagedBuildCoreTests20("testProjectCreation"));
|
||||||
suite.addTest(new ManagedBuildCoreTests20("testConfigurations"));
|
suite.addTest(new ManagedBuildCoreTests20("testConfigurations"));
|
||||||
|
@ -201,8 +202,6 @@ public class ManagedBuildCoreTests20 extends TestCase {
|
||||||
* The purpose of this test is to exercise the build path info interface.
|
* The purpose of this test is to exercise the build path info interface.
|
||||||
* To get to that point, a new project/config has to be created in the test
|
* To get to that point, a new project/config has to be created in the test
|
||||||
* project and the default configuration changed.
|
* project and the default configuration changed.
|
||||||
*
|
|
||||||
* @throws CoreException
|
|
||||||
*/
|
*/
|
||||||
public void testScannerInfoInterface(){
|
public void testScannerInfoInterface(){
|
||||||
// Open the test project
|
// Open the test project
|
||||||
|
@ -288,14 +287,14 @@ public class ManagedBuildCoreTests20 extends TestCase {
|
||||||
public void changeNotification(IResource project, IScannerInfo info) {
|
public void changeNotification(IResource project, IScannerInfo info) {
|
||||||
// Test the symbols: expect "BUILTIN" from the manifest, and "DEBUG" and "GNOME=ME"
|
// Test the symbols: expect "BUILTIN" from the manifest, and "DEBUG" and "GNOME=ME"
|
||||||
// from the overidden settings
|
// from the overidden settings
|
||||||
Map definedSymbols = info.getDefinedSymbols();
|
Map<String, String> definedSymbols = info.getDefinedSymbols();
|
||||||
assertTrue(definedSymbols.containsKey("BUILTIN"));
|
assertTrue(definedSymbols.containsKey("BUILTIN"));
|
||||||
assertTrue(definedSymbols.containsKey("DEBUG"));
|
assertTrue(definedSymbols.containsKey("DEBUG"));
|
||||||
assertTrue(definedSymbols.containsKey("GNOME"));
|
assertTrue(definedSymbols.containsKey("GNOME"));
|
||||||
assertTrue(definedSymbols.containsValue("ME"));
|
assertTrue(definedSymbols.containsValue("ME"));
|
||||||
assertEquals((String)definedSymbols.get("BUILTIN"), "");
|
assertEquals(definedSymbols.get("BUILTIN"), "");
|
||||||
assertEquals((String)definedSymbols.get("DEBUG"), "");
|
assertEquals(definedSymbols.get("DEBUG"), "");
|
||||||
assertEquals((String)definedSymbols.get("GNOME"), "ME");
|
assertEquals(definedSymbols.get("GNOME"), "ME");
|
||||||
// Test the includes path
|
// Test the includes path
|
||||||
String[] actualPaths = info.getIncludePaths();
|
String[] actualPaths = info.getIncludePaths();
|
||||||
BuildSystemTestHelper.checkDiff(expectedPaths, actualPaths);
|
BuildSystemTestHelper.checkDiff(expectedPaths, actualPaths);
|
||||||
|
@ -305,10 +304,10 @@ public class ManagedBuildCoreTests20 extends TestCase {
|
||||||
// Check the build information before we change it
|
// Check the build information before we change it
|
||||||
IScannerInfo currentSettings = provider.getScannerInformation(project);
|
IScannerInfo currentSettings = provider.getScannerInformation(project);
|
||||||
|
|
||||||
Map currentSymbols = currentSettings.getDefinedSymbols();
|
Map<String, String> currentSymbols = currentSettings.getDefinedSymbols();
|
||||||
// It should simply contain the built-in
|
// It should simply contain the built-in
|
||||||
assertTrue(currentSymbols.containsKey("BUILTIN"));
|
assertTrue(currentSymbols.containsKey("BUILTIN"));
|
||||||
assertEquals((String)currentSymbols.get("BUILTIN"), "");
|
assertEquals(currentSymbols.get("BUILTIN"), "");
|
||||||
|
|
||||||
String[] currentPaths = currentSettings.getIncludePaths();
|
String[] currentPaths = currentSettings.getIncludePaths();
|
||||||
BuildSystemTestHelper.checkDiff(expectedPaths, currentPaths);
|
BuildSystemTestHelper.checkDiff(expectedPaths, currentPaths);
|
||||||
|
@ -492,7 +491,6 @@ public class ManagedBuildCoreTests20 extends TestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @throws CoreException
|
|
||||||
* @throws BuildException
|
* @throws BuildException
|
||||||
*/
|
*/
|
||||||
public void testProjectCreation() throws BuildException {
|
public void testProjectCreation() throws BuildException {
|
||||||
|
@ -1743,7 +1741,6 @@ public class ManagedBuildCoreTests20 extends TestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @throws CoreException
|
|
||||||
* @throws BuildException
|
* @throws BuildException
|
||||||
*/
|
*/
|
||||||
public void testErrorParsers() throws BuildException {
|
public void testErrorParsers() throws BuildException {
|
||||||
|
|
Loading…
Add table
Reference in a new issue