예제 #1
0
 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);
 }
예제 #2
0
 @BeforeClass
 public static void beforeTests() {
   Environment env = IdeaEnvironment.getOrCreate(EnvironmentConfig.defaultConfig());
 }
예제 #3
0
 private static EnvironmentConfig createConfig() {
   return EnvironmentConfig.defaultConfig().withBuildPlugin().withVcsPlugin();
 }