public Environment initIdeaEnvironment() { EnvironmentConfig config = EnvironmentConfig.defaultConfig(); for (IMapping<String, String> lib : MapSequence.fromMap(loadLibraries())) { config = config.addLib(lib.value()); } for (IMapping<String, File> macro : MapSequence.fromMap(loadMacros())) { config = config.addMacro(macro.key(), macro.value()); } return IdeaEnvironment.getOrCreate(config); }
@BeforeClass public static void beforeTests() { Environment env = IdeaEnvironment.getOrCreate(EnvironmentConfig.defaultConfig()); }
private static EnvironmentConfig createConfig() { return EnvironmentConfig.defaultConfig().withBuildPlugin().withVcsPlugin(); }