diff --git a/js/js.tests/test/org/jetbrains/k2js/test/MultipleFilesTranslationTest.java b/js/js.tests/test/org/jetbrains/k2js/test/MultipleFilesTranslationTest.java new file mode 100644 index 00000000000..37e969015af --- /dev/null +++ b/js/js.tests/test/org/jetbrains/k2js/test/MultipleFilesTranslationTest.java @@ -0,0 +1,60 @@ +/* + * Copyright 2000-2012 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.jetbrains.k2js.test; + +import org.jetbrains.annotations.NotNull; +import org.jetbrains.k2js.test.rhino.RhinoFunctionResultChecker; + +import java.io.File; +import java.util.ArrayList; +import java.util.List; + +import static org.jetbrains.k2js.test.rhino.RhinoUtils.runRhinoTest; +import static org.jetbrains.k2js.test.utils.TranslationUtils.translateFiles; + +/** + * @author Pavel Talanov + */ +public abstract class MultipleFilesTranslationTest extends BasicTest { + + public MultipleFilesTranslationTest(@NotNull String main) { + super(main); + } + + protected void generateJsFromDir(@NotNull String dirName) throws Exception { + String dirPath = getInputFilePath(dirName); + File dir = new File(dirPath); + List fullFilePaths = new ArrayList(); + for (String fileName : dir.list()) { + fullFilePaths.add(getInputFilePath(dirName) + "/" + fileName); + } + assert dir.isDirectory(); + translateFiles(getProject(), fullFilePaths, getOutputFilePath(dirName + ".kt")); + } + + protected void runMultiFileTest(@NotNull String dirName, @NotNull String namespaceName, + @NotNull String functionName, @NotNull Object expectedResult) throws Exception { + generateJsFromDir(dirName); + runRhinoTest(withKotlinJsLib(getOutputFilePath(dirName + ".kt")), + new RhinoFunctionResultChecker(namespaceName, functionName, expectedResult)); + } + + public void checkFooBoxIsTrue(@NotNull String dirName) throws Exception { + runMultiFileTest(dirName, "foo", "box", true); + } +} + diff --git a/js/js.tests/test/org/jetbrains/k2js/test/TranslationTest.java b/js/js.tests/test/org/jetbrains/k2js/test/SingleFileTranslationTest.java similarity index 69% rename from js/js.tests/test/org/jetbrains/k2js/test/TranslationTest.java rename to js/js.tests/test/org/jetbrains/k2js/test/SingleFileTranslationTest.java index b627b304f9b..ee2f23758bc 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/TranslationTest.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/SingleFileTranslationTest.java @@ -21,22 +21,18 @@ import org.jetbrains.k2js.test.rhino.RhinoFunctionResultChecker; import org.jetbrains.k2js.test.rhino.RhinoSystemOutputChecker; import org.jetbrains.k2js.test.utils.TranslationUtils; -import java.io.File; -import java.util.ArrayList; import java.util.Arrays; -import java.util.List; import static org.jetbrains.k2js.test.rhino.RhinoUtils.runRhinoTest; import static org.jetbrains.k2js.test.utils.JsTestUtils.readFile; -import static org.jetbrains.k2js.test.utils.TranslationUtils.translateFiles; /** * @author Pavel Talanov */ @SuppressWarnings("JUnitTestCaseWithNonTrivialConstructors") -public abstract class TranslationTest extends BasicTest { +public abstract class SingleFileTranslationTest extends BasicTest { - public TranslationTest(@NotNull String main) { + public SingleFileTranslationTest(@NotNull String main) { super(main); } @@ -47,29 +43,10 @@ public abstract class TranslationTest extends BasicTest { new RhinoFunctionResultChecker(namespaceName, functionName, expectedResult)); } - protected void runMultiFileTest(String dirName, String namespaceName, - String functionName, Object expectedResult) throws Exception { - generateJsFromDir(dirName); - runRhinoTest(withKotlinJsLib(getOutputFilePath(dirName + ".kt")), - new RhinoFunctionResultChecker(namespaceName, functionName, expectedResult)); - } - protected void generateJsFromFile(@NotNull String filename) throws Exception { TranslationUtils.translateFile(getProject(), getInputFilePath(filename), getOutputFilePath(filename)); } - protected void generateJsFromDir(@NotNull String dirName) throws Exception { - String dirPath = getInputFilePath(dirName); - File dir = new File(dirPath); - List fullFilePaths = new ArrayList(); - for (String fileName : dir.list()) { - fullFilePaths.add(getInputFilePath(dirName) + "/" + fileName); - } - assert dir.isDirectory(); - translateFiles(getProject(), fullFilePaths, getOutputFilePath(dirName + ".kt")); - } - - public void checkFooBoxIsTrue(@NotNull String filename) throws Exception { runFunctionOutputTest(filename, "foo", "box", true); } diff --git a/js/js.tests/test/org/jetbrains/k2js/test/semantics/AbstractExpressionTest.java b/js/js.tests/test/org/jetbrains/k2js/test/semantics/AbstractExpressionTest.java index fd43374b811..fa6a0fed92d 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/semantics/AbstractExpressionTest.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/semantics/AbstractExpressionTest.java @@ -17,12 +17,12 @@ package org.jetbrains.k2js.test.semantics; import org.jetbrains.annotations.NotNull; -import org.jetbrains.k2js.test.TranslationTest; +import org.jetbrains.k2js.test.SingleFileTranslationTest; /** * @author Pavel Talanov */ -public abstract class AbstractExpressionTest extends TranslationTest { +public abstract class AbstractExpressionTest extends SingleFileTranslationTest { public AbstractExpressionTest(@NotNull String main) { super("expression/" + main); diff --git a/js/js.tests/test/org/jetbrains/k2js/test/semantics/ClassInheritanceTest.java b/js/js.tests/test/org/jetbrains/k2js/test/semantics/ClassInheritanceTest.java index 6ee7552f759..2347708650a 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/semantics/ClassInheritanceTest.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/semantics/ClassInheritanceTest.java @@ -16,12 +16,12 @@ package org.jetbrains.k2js.test.semantics; -import org.jetbrains.k2js.test.TranslationTest; +import org.jetbrains.k2js.test.SingleFileTranslationTest; /** * @author Pavel Talanov */ -public final class ClassInheritanceTest extends TranslationTest { +public final class ClassInheritanceTest extends SingleFileTranslationTest { public ClassInheritanceTest() { super("inheritance/"); diff --git a/js/js.tests/test/org/jetbrains/k2js/test/semantics/ExamplesTest.java b/js/js.tests/test/org/jetbrains/k2js/test/semantics/ExamplesTest.java index bda820d0b84..43acc444b4b 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/semantics/ExamplesTest.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/semantics/ExamplesTest.java @@ -19,7 +19,7 @@ package org.jetbrains.k2js.test.semantics; import com.intellij.testFramework.UsefulTestCase; import junit.framework.Test; import org.jetbrains.annotations.NotNull; -import org.jetbrains.k2js.test.TranslationTest; +import org.jetbrains.k2js.test.SingleFileTranslationTest; import org.jetbrains.k2js.test.utils.SuiteBuilder; @SuppressWarnings("JUnitTestCaseWithNoTests") @@ -28,7 +28,7 @@ public final class ExamplesTest extends UsefulTestCase { public static Test suite() throws Exception { return SuiteBuilder.suiteForDirectory("examples/", new SuiteBuilder.Tester() { @Override - public void performTest(@NotNull TranslationTest test, @NotNull String filename) throws Exception { + public void performTest(@NotNull SingleFileTranslationTest test, @NotNull String filename) throws Exception { test.runFunctionOutputTest(filename, "Anonymous", "box", "OK"); } }); diff --git a/js/js.tests/test/org/jetbrains/k2js/test/semantics/ExtensionFunctionTest.java b/js/js.tests/test/org/jetbrains/k2js/test/semantics/ExtensionFunctionTest.java index 1e5f6c61956..36ccebbc444 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/semantics/ExtensionFunctionTest.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/semantics/ExtensionFunctionTest.java @@ -16,12 +16,12 @@ package org.jetbrains.k2js.test.semantics; -import org.jetbrains.k2js.test.TranslationTest; +import org.jetbrains.k2js.test.SingleFileTranslationTest; /** * @author Pavel Talanov */ -public final class ExtensionFunctionTest extends TranslationTest { +public final class ExtensionFunctionTest extends SingleFileTranslationTest { public ExtensionFunctionTest() { super("extensionFunction/"); diff --git a/js/js.tests/test/org/jetbrains/k2js/test/semantics/ExtensionPropertyTest.java b/js/js.tests/test/org/jetbrains/k2js/test/semantics/ExtensionPropertyTest.java index 542e6d067fc..cafc76cb3bd 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/semantics/ExtensionPropertyTest.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/semantics/ExtensionPropertyTest.java @@ -16,12 +16,12 @@ package org.jetbrains.k2js.test.semantics; -import org.jetbrains.k2js.test.TranslationTest; +import org.jetbrains.k2js.test.SingleFileTranslationTest; /** * @author Pavel Talanov */ -public final class ExtensionPropertyTest extends TranslationTest { +public final class ExtensionPropertyTest extends SingleFileTranslationTest { public ExtensionPropertyTest() { super("extensionProperty/"); diff --git a/js/js.tests/test/org/jetbrains/k2js/test/semantics/JavaClassesTest.java b/js/js.tests/test/org/jetbrains/k2js/test/semantics/JavaClassesTest.java index c5dac4309c2..86f970c5a8b 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/semantics/JavaClassesTest.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/semantics/JavaClassesTest.java @@ -17,12 +17,12 @@ package org.jetbrains.k2js.test.semantics; import org.jetbrains.annotations.NotNull; -import org.jetbrains.k2js.test.TranslationTest; +import org.jetbrains.k2js.test.SingleFileTranslationTest; /** * @author Pavel Talanov */ -public abstract class JavaClassesTest extends TranslationTest { +public abstract class JavaClassesTest extends SingleFileTranslationTest { public JavaClassesTest(@NotNull String main) { super("java/" + main); diff --git a/js/js.tests/test/org/jetbrains/k2js/test/semantics/KotlinLibTest.java b/js/js.tests/test/org/jetbrains/k2js/test/semantics/KotlinLibTest.java index a00379d2dec..190b62690f8 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/semantics/KotlinLibTest.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/semantics/KotlinLibTest.java @@ -17,7 +17,7 @@ package org.jetbrains.k2js.test.semantics; import org.jetbrains.annotations.NotNull; -import org.jetbrains.k2js.test.TranslationTest; +import org.jetbrains.k2js.test.SingleFileTranslationTest; import org.jetbrains.k2js.test.rhino.RhinoFunctionResultChecker; import org.jetbrains.k2js.test.rhino.RhinoResultChecker; import org.mozilla.javascript.Context; @@ -30,7 +30,7 @@ import static org.jetbrains.k2js.test.rhino.RhinoUtils.runRhinoTest; /** * @author Pavel Talanov */ -public final class KotlinLibTest extends TranslationTest { +public final class KotlinLibTest extends SingleFileTranslationTest { public KotlinLibTest() { super("kotlinLib/"); diff --git a/js/js.tests/test/org/jetbrains/k2js/test/semantics/MultiFileTest.java b/js/js.tests/test/org/jetbrains/k2js/test/semantics/MultiFileTest.java index 8cd80441987..a781739715c 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/semantics/MultiFileTest.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/semantics/MultiFileTest.java @@ -16,14 +16,12 @@ package org.jetbrains.k2js.test.semantics; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.k2js.test.TranslationTest; +import org.jetbrains.k2js.test.MultipleFilesTranslationTest; /** * @author Pavel Talanov */ -public final class MultiFileTest extends TranslationTest { - +public final class MultiFileTest extends MultipleFilesTranslationTest { public MultiFileTest() { super("multiFile/"); @@ -36,9 +34,4 @@ public final class MultiFileTest extends TranslationTest { public void testClassesInheritedFromOtherFile() throws Exception { checkFooBoxIsTrue("classesInheritedFromOtherFile"); } - - @Override - public void checkFooBoxIsTrue(@NotNull String dirName) throws Exception { - runMultiFileTest(dirName, "foo", "box", true); - } } diff --git a/js/js.tests/test/org/jetbrains/k2js/test/semantics/MultiNamespaceTest.java b/js/js.tests/test/org/jetbrains/k2js/test/semantics/MultiNamespaceTest.java index 661c6b83eae..aa447769680 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/semantics/MultiNamespaceTest.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/semantics/MultiNamespaceTest.java @@ -16,13 +16,12 @@ package org.jetbrains.k2js.test.semantics; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.k2js.test.TranslationTest; +import org.jetbrains.k2js.test.MultipleFilesTranslationTest; /** * @author Pavel Talanov */ -public class MultiNamespaceTest extends TranslationTest { +public class MultiNamespaceTest extends MultipleFilesTranslationTest { public MultiNamespaceTest() { @@ -37,9 +36,5 @@ public class MultiNamespaceTest extends TranslationTest { checkFooBoxIsTrue("classesInheritedFromOtherNamespace"); } - @Override - public void checkFooBoxIsTrue(@NotNull String dirName) throws Exception { - runMultiFileTest(dirName, "foo", "box", true); - } } diff --git a/js/js.tests/test/org/jetbrains/k2js/test/semantics/NameClashesTest.java b/js/js.tests/test/org/jetbrains/k2js/test/semantics/NameClashesTest.java index 7d63b39af15..96ede0765b1 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/semantics/NameClashesTest.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/semantics/NameClashesTest.java @@ -16,12 +16,12 @@ package org.jetbrains.k2js.test.semantics; -import org.jetbrains.k2js.test.TranslationTest; +import org.jetbrains.k2js.test.SingleFileTranslationTest; /** * @author Pavel Talanov */ -public final class NameClashesTest extends TranslationTest { +public final class NameClashesTest extends SingleFileTranslationTest { public NameClashesTest() { diff --git a/js/js.tests/test/org/jetbrains/k2js/test/semantics/ObjectTest.java b/js/js.tests/test/org/jetbrains/k2js/test/semantics/ObjectTest.java index e23a8d90f14..ee3f4e4f9a6 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/semantics/ObjectTest.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/semantics/ObjectTest.java @@ -16,12 +16,12 @@ package org.jetbrains.k2js.test.semantics; -import org.jetbrains.k2js.test.TranslationTest; +import org.jetbrains.k2js.test.SingleFileTranslationTest; /** * @author Pavel Talanov */ -public final class ObjectTest extends TranslationTest { +public final class ObjectTest extends SingleFileTranslationTest { public ObjectTest() { super("object/"); diff --git a/js/js.tests/test/org/jetbrains/k2js/test/semantics/OperatorOverloadingTest.java b/js/js.tests/test/org/jetbrains/k2js/test/semantics/OperatorOverloadingTest.java index dd8243f9f9a..d41abdbbe03 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/semantics/OperatorOverloadingTest.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/semantics/OperatorOverloadingTest.java @@ -16,12 +16,12 @@ package org.jetbrains.k2js.test.semantics; -import org.jetbrains.k2js.test.TranslationTest; +import org.jetbrains.k2js.test.SingleFileTranslationTest; /** * @author Pavel Talanov */ -public final class OperatorOverloadingTest extends TranslationTest { +public final class OperatorOverloadingTest extends SingleFileTranslationTest { public OperatorOverloadingTest() { super("operatorOverloading/"); diff --git a/js/js.tests/test/org/jetbrains/k2js/test/semantics/PatternMatchingTest.java b/js/js.tests/test/org/jetbrains/k2js/test/semantics/PatternMatchingTest.java index 844ac6164ce..f9b95fc24a5 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/semantics/PatternMatchingTest.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/semantics/PatternMatchingTest.java @@ -16,13 +16,13 @@ package org.jetbrains.k2js.test.semantics; -import org.jetbrains.k2js.test.TranslationTest; +import org.jetbrains.k2js.test.SingleFileTranslationTest; import org.mozilla.javascript.JavaScriptException; /** * @author Pavel Talanov */ -public final class PatternMatchingTest extends TranslationTest { +public final class PatternMatchingTest extends SingleFileTranslationTest { public PatternMatchingTest() { super("patternMatching/"); diff --git a/js/js.tests/test/org/jetbrains/k2js/test/semantics/PropertyAccessTest.java b/js/js.tests/test/org/jetbrains/k2js/test/semantics/PropertyAccessTest.java index 1997de83254..72c1c4bee15 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/semantics/PropertyAccessTest.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/semantics/PropertyAccessTest.java @@ -16,12 +16,12 @@ package org.jetbrains.k2js.test.semantics; -import org.jetbrains.k2js.test.TranslationTest; +import org.jetbrains.k2js.test.SingleFileTranslationTest; /** * @author Pavel Talanov */ -public final class PropertyAccessTest extends TranslationTest { +public final class PropertyAccessTest extends SingleFileTranslationTest { public PropertyAccessTest() { super("propertyAccess/"); diff --git a/js/js.tests/test/org/jetbrains/k2js/test/semantics/RTTITest.java b/js/js.tests/test/org/jetbrains/k2js/test/semantics/RTTITest.java index 1b504a804bb..277eac42b9c 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/semantics/RTTITest.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/semantics/RTTITest.java @@ -16,12 +16,12 @@ package org.jetbrains.k2js.test.semantics; -import org.jetbrains.k2js.test.TranslationTest; +import org.jetbrains.k2js.test.SingleFileTranslationTest; /** * @author Pavel Talanov */ -public class RTTITest extends TranslationTest { +public class RTTITest extends SingleFileTranslationTest { public RTTITest() { super("rtti/"); diff --git a/js/js.tests/test/org/jetbrains/k2js/test/semantics/RangeTest.java b/js/js.tests/test/org/jetbrains/k2js/test/semantics/RangeTest.java index fe0115f9e11..1cdf4e0fdd3 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/semantics/RangeTest.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/semantics/RangeTest.java @@ -16,12 +16,12 @@ package org.jetbrains.k2js.test.semantics; -import org.jetbrains.k2js.test.TranslationTest; +import org.jetbrains.k2js.test.SingleFileTranslationTest; /** * @author Pavel Talanov */ -public final class RangeTest extends TranslationTest { +public final class RangeTest extends SingleFileTranslationTest { public RangeTest() { super("range/"); diff --git a/js/js.tests/test/org/jetbrains/k2js/test/semantics/SafeCallTest.java b/js/js.tests/test/org/jetbrains/k2js/test/semantics/SafeCallTest.java index 56e7b167b13..9dfe8951aa2 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/semantics/SafeCallTest.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/semantics/SafeCallTest.java @@ -16,12 +16,12 @@ package org.jetbrains.k2js.test.semantics; -import org.jetbrains.k2js.test.TranslationTest; +import org.jetbrains.k2js.test.SingleFileTranslationTest; /** * @author Pavel Talanov */ -public final class SafeCallTest extends TranslationTest { +public final class SafeCallTest extends SingleFileTranslationTest { public SafeCallTest() { super("safeCall/"); diff --git a/js/js.tests/test/org/jetbrains/k2js/test/semantics/SimpleTest.java b/js/js.tests/test/org/jetbrains/k2js/test/semantics/SimpleTest.java index 899b664864c..7b7282de0d5 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/semantics/SimpleTest.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/semantics/SimpleTest.java @@ -19,7 +19,7 @@ package org.jetbrains.k2js.test.semantics; import com.intellij.testFramework.UsefulTestCase; import junit.framework.Test; import org.jetbrains.annotations.NotNull; -import org.jetbrains.k2js.test.TranslationTest; +import org.jetbrains.k2js.test.SingleFileTranslationTest; import org.jetbrains.k2js.test.utils.SuiteBuilder; /** @@ -30,7 +30,7 @@ public final class SimpleTest extends UsefulTestCase { public static Test suite() throws Exception { return SuiteBuilder.suiteForDirectory("simple/", new SuiteBuilder.Tester() { @Override - public void performTest(@NotNull TranslationTest test, @NotNull String filename) throws Exception { + public void performTest(@NotNull SingleFileTranslationTest test, @NotNull String filename) throws Exception { test.checkFooBoxIsTrue(filename); } }); diff --git a/js/js.tests/test/org/jetbrains/k2js/test/semantics/StandardClassesTest.java b/js/js.tests/test/org/jetbrains/k2js/test/semantics/StandardClassesTest.java index 57439aff1b7..2495ff78d95 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/semantics/StandardClassesTest.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/semantics/StandardClassesTest.java @@ -16,12 +16,12 @@ package org.jetbrains.k2js.test.semantics; -import org.jetbrains.k2js.test.TranslationTest; +import org.jetbrains.k2js.test.SingleFileTranslationTest; /** * @author Pavel Talanov */ -public final class StandardClassesTest extends TranslationTest { +public final class StandardClassesTest extends SingleFileTranslationTest { public StandardClassesTest() { super("standardClasses/"); diff --git a/js/js.tests/test/org/jetbrains/k2js/test/semantics/TraitTest.java b/js/js.tests/test/org/jetbrains/k2js/test/semantics/TraitTest.java index ee67742b51f..fbbdd8f07fc 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/semantics/TraitTest.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/semantics/TraitTest.java @@ -16,12 +16,12 @@ package org.jetbrains.k2js.test.semantics; -import org.jetbrains.k2js.test.TranslationTest; +import org.jetbrains.k2js.test.SingleFileTranslationTest; /** * @author Pavel Talanov */ -public final class TraitTest extends TranslationTest { +public final class TraitTest extends SingleFileTranslationTest { public TraitTest() { super("trait/"); diff --git a/js/js.tests/test/org/jetbrains/k2js/test/semantics/TupleTest.java b/js/js.tests/test/org/jetbrains/k2js/test/semantics/TupleTest.java index da8c8970b66..d69ff61f854 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/semantics/TupleTest.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/semantics/TupleTest.java @@ -16,12 +16,12 @@ package org.jetbrains.k2js.test.semantics; -import org.jetbrains.k2js.test.TranslationTest; +import org.jetbrains.k2js.test.SingleFileTranslationTest; /** * @author Pavel Talanov */ -public final class TupleTest extends TranslationTest { +public final class TupleTest extends SingleFileTranslationTest { public TupleTest() { diff --git a/js/js.tests/test/org/jetbrains/k2js/test/semantics/WebDemoExamples1Test.java b/js/js.tests/test/org/jetbrains/k2js/test/semantics/WebDemoExamples1Test.java index d848512e0b1..c8335f17871 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/semantics/WebDemoExamples1Test.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/semantics/WebDemoExamples1Test.java @@ -16,12 +16,12 @@ package org.jetbrains.k2js.test.semantics; -import org.jetbrains.k2js.test.TranslationTest; +import org.jetbrains.k2js.test.SingleFileTranslationTest; /** * @author Pavel Talanov */ -public final class WebDemoExamples1Test extends TranslationTest { +public final class WebDemoExamples1Test extends SingleFileTranslationTest { public WebDemoExamples1Test() { super("webDemoExamples1/"); diff --git a/js/js.tests/test/org/jetbrains/k2js/test/semantics/WebDemoExamples2Test.java b/js/js.tests/test/org/jetbrains/k2js/test/semantics/WebDemoExamples2Test.java index f0086e113d3..0b5ef562ed8 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/semantics/WebDemoExamples2Test.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/semantics/WebDemoExamples2Test.java @@ -16,12 +16,12 @@ package org.jetbrains.k2js.test.semantics; -import org.jetbrains.k2js.test.TranslationTest; +import org.jetbrains.k2js.test.SingleFileTranslationTest; /** * @author Pavel Talanov */ -public final class WebDemoExamples2Test extends TranslationTest { +public final class WebDemoExamples2Test extends SingleFileTranslationTest { public WebDemoExamples2Test() { super("webDemoExamples2/"); diff --git a/js/js.tests/test/org/jetbrains/k2js/test/utils/SuiteBuilder.java b/js/js.tests/test/org/jetbrains/k2js/test/utils/SuiteBuilder.java index d1c2857bda0..5d17e5ae1c3 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/utils/SuiteBuilder.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/utils/SuiteBuilder.java @@ -19,21 +19,21 @@ package org.jetbrains.k2js.test.utils; import com.intellij.testFramework.UsefulTestCase; import junit.framework.Test; import org.jetbrains.annotations.NotNull; -import org.jetbrains.k2js.test.TranslationTest; +import org.jetbrains.k2js.test.SingleFileTranslationTest; import org.jetbrains.k2js.test.semantics.TranslatorTestCaseBuilder; /** * @author Pavel Talanov */ @SuppressWarnings("JUnitTestCaseWithNoTests") -public abstract class SuiteBuilder extends TranslationTest { +public abstract class SuiteBuilder extends SingleFileTranslationTest { private SuiteBuilder(@NotNull String pathToMain) { super(pathToMain); } public interface Tester { - void performTest(@NotNull TranslationTest test, @NotNull String filename) throws Exception; + void performTest(@NotNull SingleFileTranslationTest test, @NotNull String filename) throws Exception; } @SuppressWarnings("JUnitTestCaseWithNonTrivialConstructors")