private VMRunnerConfiguration createVMmuJava(
ILaunchConfiguration configuration, String runMode)
throws CoreException {
String[] classPath= createClassPath(configuration);
VMRunnerConfiguration vmConfig = new VMRunnerConfiguration(
RunTests.class.getName(),
classPath);
String mutants = configuration.getAttribute(
MuClipseConstants.MUTANTS, "");
String source = configuration.getAttribute(
MuClipseConstants.SOURCE, "");
String classes = configuration.getAttribute(
MuClipseConstants.CLASSES, "");
String tests = configuration.getAttribute(
MuClipseConstants.TESTS, "");
String whichTest = configuration.getAttribute(
MuClipseConstants.WHICH_TEST, "");
String classlist = configuration.getAttribute(
MuClipseConstants.CLASSCHOICE, "");
String timeout = "" + configuration.getAttribute(
MuClipseConstants.TIMEOUT, 5000);
String testlevel = "" + configuration.getAttribute(
MuClipseConstants.TESTLEVEL, 3);
String projectName = configuration.getAttribute(
IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, "");
String[] args = new String[9];
args[0] = composeFullName(projectName, "");
args[1] = source;
args[2] = classes;
args[3] = mutants;
args[4] = tests;
args[5] = whichTest;
args[6] = classlist;
args[7] = timeout;
args[8] = testlevel;
vmConfig.setProgramArguments(args);
return vmConfig;
}