use of org.eclipse.linuxtools.internal.valgrind.tests.ValgrindTestLaunchShortcut in project linuxtools by eclipse.
the class ShortcutTest method testShortcutEditor.
@Test
public void testShortcutEditor() throws Exception {
ValgrindTestLaunchShortcut shortcut = new ValgrindTestLaunchShortcut();
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
// $NON-NLS-1$
IFile file = proj.getProject().getFile("test.c");
IEditorPart editor = IDE.openEditor(page, file);
assertNotNull(editor);
shortcut.launch(editor, ILaunchManager.PROFILE_MODE);
ILaunchConfiguration config = shortcut.getConfig();
compareWithDefaults(config);
}
use of org.eclipse.linuxtools.internal.valgrind.tests.ValgrindTestLaunchShortcut in project linuxtools by eclipse.
the class ShortcutTest method testShortcutSelection.
@Test
public void testShortcutSelection() throws Exception {
ValgrindTestLaunchShortcut shortcut = new ValgrindTestLaunchShortcut();
shortcut.launch(new StructuredSelection(proj.getProject()), ILaunchManager.PROFILE_MODE);
ILaunchConfiguration config = shortcut.getConfig();
compareWithDefaults(config);
}
use of org.eclipse.linuxtools.internal.valgrind.tests.ValgrindTestLaunchShortcut in project linuxtools by eclipse.
the class ShortcutTest method testShortcutExistingConfig.
@Test
public void testShortcutExistingConfig() throws Exception {
ILaunchConfiguration prev = createConfiguration(proj.getProject());
ValgrindTestLaunchShortcut shortcut = new ValgrindTestLaunchShortcut();
shortcut.launch(new StructuredSelection(proj.getProject()), ILaunchManager.PROFILE_MODE);
ILaunchConfiguration current = shortcut.getConfig();
assertEquals(prev, current);
}
Aggregations