copy testdata for FormMergerTreeStructureProviderTest

This commit is contained in:
Dmitry Jemerov
2009-09-10 19:31:05 +04:00
parent dfc03b2abf
commit e389680982
8 changed files with 10 additions and 1 deletions
@@ -53,7 +53,7 @@ import java.io.File;
super.setUp();
myTempDirectory = FileUtil.createTempDirectory(getTestName(true), "test");
myFilesToDelete.add(getTestContentFile());
final File testRoot = new File(PathManagerEx.getTestDataPath(), getTestPath());
final File testRoot = new File(getTestDataPath(), getTestPath());
assertTrue(testRoot.getAbsolutePath(), testRoot.isDirectory());
final File currentTestRoot = new File(testRoot, getTestDirectoryName());
@@ -69,6 +69,10 @@ import java.io.File;
}
protected String getTestDataPath() {
return PathManagerEx.getTestDataPath();
}
protected abstract String getTestPath();
private File getTestContentFile() {
@@ -2,6 +2,7 @@ package com.intellij.uiDesigner.projectView;
import com.intellij.ide.projectView.impl.AbstractProjectViewPSIPane;
import com.intellij.ide.projectView.impl.ClassesTreeStructureProvider;
import com.intellij.openapi.application.PluginPathManager;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.projectView.BaseProjectViewTestCase;
import com.intellij.psi.PsiClass;
@@ -10,6 +11,10 @@ import com.intellij.psi.PsiJavaFile;
public class FormMergerTreeStructureProviderTest extends BaseProjectViewTestCase {
@Override
protected String getTestDataPath() {
return PluginPathManager.getPluginHomePath("ui-designer") + "/testData";
}
public void testStandardProviders() {
final AbstractProjectViewPSIPane pane = createPane();