Initial stubs for Psi checker and tests for it

This commit is contained in:
Andrey Breslav
2011-01-14 22:43:44 +03:00
parent 52f985c9a4
commit e40769f45b
4 changed files with 49 additions and 0 deletions
@@ -0,0 +1,25 @@
package org.jetbrains.jet.parsing;
import com.intellij.codeInsight.daemon.LightDaemonAnalyzerTestCase;
import com.intellij.openapi.application.PathManager;
import java.io.File;
/**
* @author abreslav
*/
public class JetPsiCheckerTest extends LightDaemonAnalyzerTestCase {
@Override
protected String getTestDataPath() {
return getHomeDirectory() + "/idea/testData";
}
private static String getHomeDirectory() {
return new File(PathManager.getResourceRoot(JetParsingTest.class, "/org/jetbrains/jet/parsing/JetParsingTest.class")).getParentFile().getParentFile().getParent();
}
public void testFoo() throws Exception {
doTest("/checker/Properties.jet", true, true);
}
}