Package com.intellij.execution.junit

Examples of com.intellij.execution.junit.RuntimeConfigurationProducer


        final RunManagerEx runManager = (RunManagerEx) RunManager.getInstance(project);
        runManager.setTemporaryConfiguration(settings);
    }

    private RunnerAndConfigurationSettings createConfiguration(Project project, Module module, PsiJavaFile testClassFile) {
        RuntimeConfigurationProducer producer = new TestClassConfigurationProducer();
        ConfigurationFactory configurationFactory = producer.getConfigurationType().getConfigurationFactories()[0];
        RunnerAndConfigurationSettings settings = RunManager.getInstance(project).createRunConfiguration("", configurationFactory);
        final JUnitConfiguration configuration = (JUnitConfiguration)settings.getConfiguration();
        configuration.setModule(module);
        PsiClass testClass = JUnitUtil.getTestClass(testClassFile);
        configuration.beClassConfiguration(testClass);
View Full Code Here

TOP

Related Classes of com.intellij.execution.junit.RuntimeConfigurationProducer

Copyright © 2018 www.massapicom. 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.