Examples of LaunchConfigurationImpl


Examples of org.apache.ace.processlauncher.impl.LaunchConfigurationImpl

     * Test that the {@link LaunchConfigurationImpl#getCommandLine()} method works properly when two
     * executable arguments are given.
     */
    public void testGetCommandLineWithTwoArgumentsOk() {
        LaunchConfiguration launchConfig =
            new LaunchConfigurationImpl(1, "/path/to/foo", new String[] { "-qux", "-bar" }, null, true);

        String[] commandLine = launchConfig.getCommandLine();
        assertNotNull(commandLine);
        assertEquals(3, commandLine.length);

        assertEquals("/path/to/foo", commandLine[0]);
        assertEquals("-qux", commandLine[1]);
        assertEquals("-bar", commandLine[2]);
        assertNull(launchConfig.getProcessStreamListener());
        assertTrue(launchConfig.isRespawnAutomatically());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.