Tests for code transformation: if statement with assignments <-> assignment with if expression

This commit is contained in:
Alexey Sedunov
2013-04-04 15:52:03 +04:00
parent 9f828b8f41
commit af8c3792f6
18 changed files with 428 additions and 0 deletions
@@ -31,6 +31,7 @@ import org.jetbrains.jet.jvm.compiler.*;
import org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveDescriptorRendererTest;
import org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveNamespaceComparingTest;
import org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveTest;
import org.jetbrains.jet.plugin.codeInsight.codeTransformations.AbstractCodeTransformationTest;
import org.jetbrains.jet.plugin.codeInsight.surroundWith.AbstractSurroundWithTest;
import org.jetbrains.jet.plugin.folding.AbstractKotlinFoldingTest;
import org.jetbrains.jet.plugin.hierarchy.AbstractHierarchyTest;
@@ -259,6 +260,14 @@ public class GenerateTests {
testModel("idea/testData/codeInsight/surroundWith/functionLiteral", "doTestWithFunctionLiteralSurrounder")
);
generateTest(
"idea/tests/",
"CodeTransformationsTestGenerated",
AbstractCodeTransformationTest.class,
testModel("idea/testData/codeInsight/codeTransformations/ifStatementWithAssignmentsToExpression", "doTestIfStatementWithAssignmentsToExpression"),
testModel("idea/testData/codeInsight/codeTransformations/assignmentWithIfExpressionToStatement", "doTestAssignmentWithIfExpressionToStatement")
);
generateTest(
"idea/tests/",
"HierarchyTestGenerated",