Search in sources :

Example 91 with ILaunchConfigurationType

use of org.eclipse.debug.core.ILaunchConfigurationType in project jbosstools-openshift by jbosstools.

the class DebugLaunchConfigsTest method testCreateRemoteDebuggerLaunchConfiguration.

@Test
public void testCreateRemoteDebuggerLaunchConfiguration() throws CoreException {
    IServer server = mockServer("foo");
    ILaunchConfigurationType launchConfigurationType = mock(ILaunchConfigurationType.class);
    when(launchManager.getLaunchConfigurationType(ID_REMOTE_JAVA_APPLICATION)).thenReturn(launchConfigurationType);
    debugLaunchConfigs.createRemoteDebuggerLaunchConfiguration(server);
    verify(launchConfigurationType).newInstance(null, "Remote debugger to foo");
}
Also used : IServer(org.eclipse.wst.server.core.IServer) ILaunchConfigurationType(org.eclipse.debug.core.ILaunchConfigurationType) Test(org.junit.Test)

Aggregations

ILaunchConfigurationType (org.eclipse.debug.core.ILaunchConfigurationType)91 ILaunchConfigurationWorkingCopy (org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)62 ILaunchManager (org.eclipse.debug.core.ILaunchManager)54 ILaunchConfiguration (org.eclipse.debug.core.ILaunchConfiguration)50 CoreException (org.eclipse.core.runtime.CoreException)43 ArrayList (java.util.ArrayList)19 HashMap (java.util.HashMap)8 IPath (org.eclipse.core.runtime.IPath)8 NullProgressMonitor (org.eclipse.core.runtime.NullProgressMonitor)6 Path (org.eclipse.core.runtime.Path)6 ILaunch (org.eclipse.debug.core.ILaunch)6 File (java.io.File)5 IOException (java.io.IOException)5 Map (java.util.Map)5 IProject (org.eclipse.core.resources.IProject)5 IResource (org.eclipse.core.resources.IResource)4 IStatus (org.eclipse.core.runtime.IStatus)4 List (java.util.List)3 IProgressMonitor (org.eclipse.core.runtime.IProgressMonitor)3 WorkflowProject (com.centurylink.mdw.plugin.project.model.WorkflowProject)2