diff options
author | Mike Rennie | 2013-04-19 19:02:04 +0000 |
---|---|---|
committer | Mike Rennie | 2013-04-19 19:02:04 +0000 |
commit | 8a2aac38ff9dca4488d339516ffc022dd83382d1 (patch) | |
tree | 888fd03b950dfb341b8d7fe32a3cb5095a2e5bd0 | |
parent | 99b365ce371c92956e3cdfde474dda4eeba5ad20 (diff) | |
download | eclipse.platform.debug-8a2aac38ff9dca4488d339516ffc022dd83382d1.tar.gz eclipse.platform.debug-8a2aac38ff9dca4488d339516ffc022dd83382d1.tar.xz eclipse.platform.debug-8a2aac38ff9dca4488d339516ffc022dd83382d1.zip |
[nobug] remove deprecation warningsI20130508-1200I20130507-2000I20130507-1100I20130507-0000I20130506-2000I20130505-2000I20130504-1500I20130503-2000I20130502-0800I20130501-2000I20130501-1400I20130501-1100I20130501-0800I20130430-2000I20130430-0800I20130430-0031I20130429-2000I20130429-0800I20130428-2000I20130423-0800
-rw-r--r-- | org.eclipse.debug.tests/src/org/eclipse/debug/tests/breakpoint/BreakpointOrderingTests.java | 63 |
1 files changed, 31 insertions, 32 deletions
diff --git a/org.eclipse.debug.tests/src/org/eclipse/debug/tests/breakpoint/BreakpointOrderingTests.java b/org.eclipse.debug.tests/src/org/eclipse/debug/tests/breakpoint/BreakpointOrderingTests.java index e846d296d..96254046e 100644 --- a/org.eclipse.debug.tests/src/org/eclipse/debug/tests/breakpoint/BreakpointOrderingTests.java +++ b/org.eclipse.debug.tests/src/org/eclipse/debug/tests/breakpoint/BreakpointOrderingTests.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2012 IBM Corporation and others. + * Copyright (c) 2000, 2013 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -12,7 +12,6 @@ package org.eclipse.debug.tests.breakpoint; import java.util.List; -import junit.framework.Assert; import junit.framework.TestCase; import org.eclipse.core.resources.IMarker; @@ -75,7 +74,7 @@ public class BreakpointOrderingTests extends TestCase { ResourcesPlugin.getWorkspace().run( wr, null ); } catch ( CoreException e ) { - Assert.fail("Unexpected exception: " + e.toString()); + fail("Unexpected exception: " + e.toString()); } } @@ -102,40 +101,40 @@ public class BreakpointOrderingTests extends TestCase { } public boolean isEnabled() throws CoreException { - Assert.fail("not implemented in test"); + fail("not implemented in test"); return false; } public boolean isPersisted() throws CoreException { - Assert.fail("not implemented in test"); + fail("not implemented in test"); return false; } public boolean isRegistered() throws CoreException { - Assert.fail("not implemented in test"); + fail("not implemented in test"); return false; } public void setEnabled(boolean enabled) throws CoreException { - Assert.fail("not implemented in test"); + fail("not implemented in test"); } public void setMarker(IMarker marker) throws CoreException { - Assert.assertTrue(fMarker == null && marker != null); + assertTrue(fMarker == null && marker != null); fMarker = marker; } public void setPersisted(boolean registered) throws CoreException { - Assert.fail("not implemented in test"); + fail("not implemented in test"); } public void setRegistered(boolean registered) throws CoreException { - Assert.fail("not implemented in test"); + fail("not implemented in test"); } public Object getAdapter(Class adapter) { - Assert.fail("not implemented in test"); + fail("not implemented in test"); return null; } @@ -157,12 +156,12 @@ public class BreakpointOrderingTests extends TestCase { } public int getCharEnd() throws CoreException { - Assert.fail("not implemented in test"); + fail("not implemented in test"); return 0; } public int getCharStart() throws CoreException { - Assert.fail("not implemented in test"); + fail("not implemented in test"); return 0; } } @@ -177,38 +176,38 @@ public class BreakpointOrderingTests extends TestCase { } protected Widget doFindInputItem(Object element) { - Assert.fail("not implemented in test"); + fail("not implemented in test"); return null; } protected Widget doFindItem(Object element) { - Assert.fail("not implemented in test"); + fail("not implemented in test"); return null; } protected void doUpdateItem(Widget item, Object element, boolean fullMap) { - Assert.fail("not implemented in test"); + fail("not implemented in test"); } protected List getSelectionFromWidget() { - Assert.fail("not implemented in test"); + fail("not implemented in test"); return null; } protected void internalRefresh(Object element) { - Assert.fail("not implemented in test"); + fail("not implemented in test"); } public void reveal(Object element) { - Assert.fail("not implemented in test"); + fail("not implemented in test"); } protected void setSelectionToWidget(List l, boolean reveal) { - Assert.fail("not implemented in test"); + fail("not implemented in test"); } public Control getControl() { - Assert.fail("not implemented in test"); + fail("not implemented in test"); return null; }}; @@ -216,47 +215,47 @@ public class BreakpointOrderingTests extends TestCase { IDebugModelPresentation fDebugModelPres = new IDebugModelPresentation() { public void computeDetail(IValue value, IValueDetailListener listener) { - Assert.fail("not implemented in test"); + fail("not implemented in test"); } public Image getImage(Object element) { - Assert.fail("not implemented in test"); + fail("not implemented in test"); return null; } public String getText(Object element) { - Assert.assertTrue("Unexpected element", element instanceof TestBreakpoint); + assertTrue("Unexpected element", element instanceof TestBreakpoint); return ((TestBreakpoint)element).getText(); } public void setAttribute(String attribute, Object value) { - Assert.fail("not implemented in test"); + fail("not implemented in test"); } public void addListener(ILabelProviderListener listener) { - Assert.fail("not implemented in test"); + fail("not implemented in test"); } public void dispose() { - Assert.fail("not implemented in test"); + fail("not implemented in test"); } public boolean isLabelProperty(Object element, String property) { - Assert.fail("not implemented in test"); + fail("not implemented in test"); return false; } public void removeListener(ILabelProviderListener listener) { - Assert.fail("not implemented in test"); + fail("not implemented in test"); } public String getEditorId(IEditorInput input, Object element) { - Assert.fail("not implemented in test"); + fail("not implemented in test"); return null; } public IEditorInput getEditorInput(Object element) { - Assert.fail("not implemented in test"); + fail("not implemented in test"); return null; }}; @@ -370,7 +369,7 @@ public class BreakpointOrderingTests extends TestCase { } } } - Assert.assertFalse(failed); + assertFalse(failed); } finally { for (int index = 0; index < testBps.length; index++) { testBps[index].delete(); |