mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
place temp file inside extra directory
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -62,7 +62,10 @@ public class EclipseImportWizardTest extends ProjectWizardTestCase {
|
||||
}
|
||||
|
||||
public void testImportingFromTwoProviders() throws Exception {
|
||||
File file = createTempFile("Foo.java", "class Foo {}");
|
||||
File dir = createTempDirectory();
|
||||
File file = new File(dir, "Foo.java");
|
||||
FileUtil.writeToFile(file, "class Foo {}");
|
||||
System.out.println("file = " + file);
|
||||
Module module = importProjectFrom(file.getParent(), null, new ImportFromSourcesProvider(),
|
||||
new EclipseProjectImportProvider(new EclipseImportBuilder()));
|
||||
VirtualFile[] sourceRoots = ModuleRootManager.getInstance(module).getSourceRoots();
|
||||
|
||||
Reference in New Issue
Block a user