void () { doTestClassWithMain(() -> { RunManager manager = RunManager.getInstance(getProject()); JUnitConfiguration test = new JUnitConfiguration("MainTest", getProject()); test.beClassConfiguration(myFixture.findClass("MainTest")); RunnerAndConfigurationSettingsImpl settings = new RunnerAndConfigurationSettingsImpl((RunManagerImpl)manager, test); manager.addConfiguration(settings); myTempSettings.add(settings); }); }