diff options
author | Marc Khouzam | 2012-01-17 14:42:18 +0000 |
---|---|---|
committer | Marc Khouzam | 2012-01-17 14:42:18 +0000 |
commit | 2bafef2e42a8fc04637fef5bd468e0cd893894a0 (patch) | |
tree | 8e1a3e813bd22dd84d7ee3af613b65fe32d3e218 /debug/org.eclipse.cdt.debug.ui.tests/core/org | |
parent | d184e414d04125c66d85cf0c55e6b921d4d7c420 (diff) | |
download | org.eclipse.cdt-2bafef2e42a8fc04637fef5bd468e0cd893894a0.tar.gz org.eclipse.cdt-2bafef2e42a8fc04637fef5bd468e0cd893894a0.tar.xz org.eclipse.cdt-2bafef2e42a8fc04637fef5bd468e0cd893894a0.zip |
Code cleanup, mostly about missing @Override
Diffstat (limited to 'debug/org.eclipse.cdt.debug.ui.tests/core/org')
5 files changed, 17 insertions, 8 deletions
diff --git a/debug/org.eclipse.cdt.debug.ui.tests/core/org/eclipse/cdt/debug/core/tests/AbstractDebugTest.java b/debug/org.eclipse.cdt.debug.ui.tests/core/org/eclipse/cdt/debug/core/tests/AbstractDebugTest.java index 5fc693af2e4..e1367ee9771 100644 --- a/debug/org.eclipse.cdt.debug.ui.tests/core/org/eclipse/cdt/debug/core/tests/AbstractDebugTest.java +++ b/debug/org.eclipse.cdt.debug.ui.tests/core/org/eclipse/cdt/debug/core/tests/AbstractDebugTest.java @@ -94,8 +94,8 @@ public abstract class AbstractDebugTest extends TestCase { /*********************************************************************** * Create a new project and import the test source. */ - Path imputFile = new Path(getProjectZip()); //$NON-NLS-1$ - testProject = CProjectHelper.createCProjectWithImport(getProjectName(), imputFile); //$NON-NLS-1$ + Path imputFile = new Path(getProjectZip()); + testProject = CProjectHelper.createCProjectWithImport(getProjectName(), imputFile); if (testProject == null) fail("Unable to create project"); //$NON-NLS-1$ /* Build the test project.. */ @@ -181,11 +181,13 @@ public abstract class AbstractDebugTest extends TestCase { } } + @Override protected void setUp() throws FileNotFoundException, IOException, InterruptedException, InvocationTargetException, CoreException { newInstance.oneTimeSetUp(); } + @Override protected void tearDown() throws FileNotFoundException, IOException, CoreException { newInstance.oneTimeTearDown(); } diff --git a/debug/org.eclipse.cdt.debug.ui.tests/core/org/eclipse/cdt/debug/core/tests/BreakpointTests.java b/debug/org.eclipse.cdt.debug.ui.tests/core/org/eclipse/cdt/debug/core/tests/BreakpointTests.java index f0647431755..c28f4fb478a 100644 --- a/debug/org.eclipse.cdt.debug.ui.tests/core/org/eclipse/cdt/debug/core/tests/BreakpointTests.java +++ b/debug/org.eclipse.cdt.debug.ui.tests/core/org/eclipse/cdt/debug/core/tests/BreakpointTests.java @@ -400,7 +400,7 @@ public class BreakpointTests extends AbstractDebugTest { int maxBreakpoints = 5; for (int x = 0; x < maxBreakpoints; x++) { ICDILineLocation lineLocation = cdiTarget.createLineLocation("main.c", x + lineStart); - ICDILocationBreakpoint bp = (ICDILocationBreakpoint) cdiTarget.setLineBreakpoint(0, lineLocation, null, false); + ICDILocationBreakpoint bp = cdiTarget.setLineBreakpoint(0, lineLocation, null, false); assertNotNull(bp); assertEquals(x + lineStart, (bp.getLocator().getLineNumber())); savedbreakpoints[0] = bp; @@ -598,7 +598,7 @@ public class BreakpointTests extends AbstractDebugTest { * Create a break point on first instruction **********************************************************************/ - location = currentTarget.createAddressLocation(address); //$NON-NLS-1$ + location = currentTarget.createAddressLocation(address); assertNotNull(location); currentTarget.setAddressBreakpoint(0, location, null, false); diff --git a/debug/org.eclipse.cdt.debug.ui.tests/core/org/eclipse/cdt/debug/core/tests/DebugTests.java b/debug/org.eclipse.cdt.debug.ui.tests/core/org/eclipse/cdt/debug/core/tests/DebugTests.java index 9a629a3400e..1659f30da32 100644 --- a/debug/org.eclipse.cdt.debug.ui.tests/core/org/eclipse/cdt/debug/core/tests/DebugTests.java +++ b/debug/org.eclipse.cdt.debug.ui.tests/core/org/eclipse/cdt/debug/core/tests/DebugTests.java @@ -75,7 +75,8 @@ public class DebugTests extends TestCase { * Example code test the packages in the project * "com.qnx.tools.ide.cdt.core" */ - protected void setUp() throws CoreException, InvocationTargetException, IOException { + @Override + protected void setUp() throws CoreException, InvocationTargetException, IOException { ResourcesPlugin.getWorkspace().getDescription().setAutoBuilding(false); /*** * Create a new project and import the test source. @@ -95,7 +96,8 @@ public class DebugTests extends TestCase { * * Called after every test case method. */ - protected void tearDown() throws CoreException, CDIException { + @Override + protected void tearDown() throws CoreException, CDIException { if (session!=null) { session.terminate(); session=null; diff --git a/debug/org.eclipse.cdt.debug.ui.tests/core/org/eclipse/cdt/debug/core/tests/EventBreakpointTests.java b/debug/org.eclipse.cdt.debug.ui.tests/core/org/eclipse/cdt/debug/core/tests/EventBreakpointTests.java index b303a9acf64..9225b269638 100644 --- a/debug/org.eclipse.cdt.debug.ui.tests/core/org/eclipse/cdt/debug/core/tests/EventBreakpointTests.java +++ b/debug/org.eclipse.cdt.debug.ui.tests/core/org/eclipse/cdt/debug/core/tests/EventBreakpointTests.java @@ -29,14 +29,17 @@ public class EventBreakpointTests extends AbstractDebugTest { return new DebugTestWrapper(EventBreakpointTests.class){}; } + @Override protected String getProjectName() { return "catchpoints"; } + @Override protected String getProjectZip() { return "resources/debugCxxTest.zip"; } + @Override protected String getProjectBinary() { return "catchpoints.exe"; } diff --git a/debug/org.eclipse.cdt.debug.ui.tests/core/org/eclipse/cdt/debug/core/tests/TargetTests.java b/debug/org.eclipse.cdt.debug.ui.tests/core/org/eclipse/cdt/debug/core/tests/TargetTests.java index 84039517b51..1d1dcc30c1e 100644 --- a/debug/org.eclipse.cdt.debug.ui.tests/core/org/eclipse/cdt/debug/core/tests/TargetTests.java +++ b/debug/org.eclipse.cdt.debug.ui.tests/core/org/eclipse/cdt/debug/core/tests/TargetTests.java @@ -65,7 +65,8 @@ public class TargetTests extends TestCase { * Example code test the packages in the project * "com.qnx.tools.ide.cdt.core" */ - protected void setUp() throws CoreException,FileNotFoundException { + @Override + protected void setUp() throws CoreException,FileNotFoundException { /*** * Setup the various files, paths and projects that are needed by the @@ -81,7 +82,8 @@ public class TargetTests extends TestCase { * * Called after every test case method. */ - protected void tearDown() throws CoreException { + @Override + protected void tearDown() throws CoreException { CProjectHelper.delete(testProject); } |