@Override protected void setUp() throws Exception { myMainOutput = new TempDirTestFixtureImpl(); myMainOutput.setUp(); super.setUp(); getProject().getComponent(GroovyCompilerLoader.class).projectOpened(); CompilerManagerImpl.testSetup(); new WriteCommandAction(getProject()) { @Override protected void run(Result result) throws Throwable { //noinspection ConstantConditions CompilerProjectExtension.getInstance(getProject()) .setCompilerOutputUrl(myMainOutput.findOrCreateDir("out").getUrl()); if (useJps()) { ApplicationManagerEx.getApplicationEx().doNotSave(false); CompilerWorkspaceConfiguration.getInstance(getProject()).USE_COMPILE_SERVER = true; JavaAwareProjectJdkTableImpl jdkTable = JavaAwareProjectJdkTableImpl.getInstanceEx(); Sdk internalJdk = jdkTable.getInternalJdk(); jdkTable.addJdk(internalJdk); ModuleRootModificationUtil.setModuleSdk(myModule, internalJdk); } } }.execute(); }
@Override protected void setUp() throws Exception { super.setUp(); myJavaPsiFacade = JavaPsiFacade.getInstance(myModule.getProject()); myInferredAnnotationsManager = InferredAnnotationsManager.getInstance(myModule.getProject()); myMessageDigest = MessageDigest.getInstance("MD5"); setUpDataClasses(); }
@Override protected void tuneFixture(JavaModuleFixtureBuilder moduleBuilder) throws Exception { moduleBuilder.setMockJdkLevel(JavaModuleFixtureBuilder.MockJdkLevel.jdk15); moduleBuilder.addJdk(JavaSdkImpl.getMockJdk17Path().getPath()); super.tuneFixture(moduleBuilder); }