Added and sorted tests from jet repository. Fixed a bug with custom setter.

This commit is contained in:
Pavel Talanov
2011-11-26 00:38:17 +04:00
parent e36eaa08a4
commit 97fbcb4775
51 changed files with 1399 additions and 376 deletions
+33
View File
@@ -0,0 +1,33 @@
import junit.framework.Test;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.jet.JetLiteFixture;
public final class ExampleTestSuite extends JetLiteFixture {
private String name;
public ExampleTestSuite(@NonNls String dataPath, String name) {
this.name = name;
}
public String getName() {
return "test" + name;
}
public void runTest() throws Exception {
}
public static Test suite() {
return JetTestCaseBuilder.suiteForDirectory(JetTestCaseBuilder.getTestDataPathBase(),
"/checkerWithErrorTypes/quick", true, new JetTestCaseBuilder.NamedTestFactory() {
@NotNull
@Override
public Test createTest(@NotNull String dataPath, @NotNull String name) {
return (new ExampleTestSuite(dataPath, name));
}
});
}
}