Search in sources :

Example 1 with BreakpointsView

use of org.eclipse.reddeer.eclipse.debug.ui.views.breakpoints.BreakpointsView in project jbosstools-openshift by jbosstools.

the class DebuggingEAPAppTest method teardown.

@After
public void teardown() {
    try {
        new ShellMenuItem("Run", "Terminate").select();
    } catch (CoreLayerException ex) {
        if (ex.getMessage().contains("Menu item is not enabled")) {
        // no big deal, there is no execution running
        } else {
            throw ex;
        }
    }
    // remove all breakpoints
    BreakpointsView breakpointsView = new BreakpointsView();
    breakpointsView.open();
    breakpointsView.removeAllBreakpoints();
}
Also used : ShellMenuItem(org.eclipse.reddeer.swt.impl.menu.ShellMenuItem) BreakpointsView(org.eclipse.reddeer.eclipse.debug.ui.views.breakpoints.BreakpointsView) CoreLayerException(org.eclipse.reddeer.core.exception.CoreLayerException) After(org.junit.After)

Aggregations

CoreLayerException (org.eclipse.reddeer.core.exception.CoreLayerException)1 BreakpointsView (org.eclipse.reddeer.eclipse.debug.ui.views.breakpoints.BreakpointsView)1 ShellMenuItem (org.eclipse.reddeer.swt.impl.menu.ShellMenuItem)1 After (org.junit.After)1