java-extension/com.microsoft.java.test.plugin/src/main/java/com/microsoft/java/test/plugin/launchers/JUnitLaunchConfigurationDelegate.java
private String[] parseParameters(String[] programArguments) throws CoreException {
        final List<String> arguments = new LinkedList<>();
        for (int i = 0; i < programArguments.length; i++) {
            if (testNameArgs.contains(programArguments[i])) {
                while (i + 1 < programArguments.length && !programArguments[i + 1].startsWith("-")) {
                    i++;
                }
            } else {
                arguments.add(programArguments[i]);
                while (i + 1 < programArguments.length && !programArguments[i + 1].startsWith("-")) {
                    arguments.add(programArguments[++i]);
                }
            }
        }

        addTestItemArgs(arguments);

        return arguments.toArray(new String[arguments.size()]);
    }
/**
     * To re-calculate the parameters to the test runner, this is because the argument resolved by Eclipse only supports
     * run single package/class, but its test runner supports to run multiple test items in a test session,
     * so we update the parameters here to leverage this capability.
     * @param programArguments
     * @return
     * @throws CoreException
     */
To re-calculate the parameters to the test runner, this is because the argument resolved by Eclipse only supports
run single package/class, but its test runner supports to run multiple test items in a test session,
so we update the parameters here to leverage this capability.
@param programArguments
@return
@throws CoreException
To re - calculate the parameters to the test runner this is because the argument resolved by Eclipse only supports run single package / class but its test runner supports to run multiple test items in a test session so we update the parameters here to leverage this capability . @param programArguments @return @throws CoreException
private String[] parseParameters(String[] programArguments) throws CoreException {
        final List<String> arguments = new LinkedList<>();
        for (int i = 0; i < programArguments.length; i++) {
            if (testNameArgs.contains(programArguments[i])) {
                while (i + 1 < programArguments.length && !programArguments[i + 1].startsWith("-")) {
                    i++;
                }
            } else {
                arguments.add(programArguments[i]);
                while (i + 1 < programArguments.length && !programArguments[i + 1].startsWith("-")) {
                    arguments.add(programArguments[++i]);
                }
            }
        }
        addTestItemArgs(arguments);
        return arguments.toArray(new String[arguments.size()]);
    }
private String [ ] parseParameters ( String [ ] programArguments ) throws CoreException { final List < String > arguments = new LinkedList < > ( ) ; for ( int i = 0 ; i < programArguments . length ; i ++ ) { if ( testNameArgs . contains ( programArguments [ i ] ) ) { while ( i + 1 < programArguments . length && ! programArguments [ i + 1 ] . startsWith ( "-" ) ) { i ++ ; } } else { arguments . add ( programArguments [ i ] ) ; while ( i + 1 < programArguments . length && ! programArguments [ i + 1 ] . startsWith ( "-" ) ) { arguments . add ( programArguments [ ++ i ] ) ; } } } addTestItemArgs ( arguments ) ; return arguments . toArray ( new String [ arguments . size ( ) ] ) ; }
To re-calculate the parameters to the test runner, this is because the argument resolved by Eclipse only supports
 run single package/class, but its test runner supports to run multiple test items in a test session,
 so we update the parameters here to leverage this capability.
To re - calculate the parameters to the test runner this is because the argument resolved by Eclipse only supports run single package / class but its test runner supports to run multiple test items in a test session so we update the parameters here to leverage this capability .