Add try-catch, try-finally, try-catch-finally surrounders

This commit is contained in:
Natalia.Ukhorskaya
2013-02-14 18:15:34 +04:00
parent ae6a2d3820
commit 7789062c7c
22 changed files with 462 additions and 3 deletions
@@ -264,6 +264,27 @@ public class GenerateTests {
AbstractSurroundWithTest.class,
testModel("idea/testData/codeInsight/surroundWith/when", "doTestWithWhenSurrounder")
);
generateTest(
"idea/tests/",
"SurroundWithTryCatchTestGenerated",
AbstractSurroundWithTest.class,
testModel("idea/testData/codeInsight/surroundWith/tryCatch", "doTestWithTryCatchSurrounder")
);
generateTest(
"idea/tests/",
"SurroundWithTryCatchFinallyTestGenerated",
AbstractSurroundWithTest.class,
testModel("idea/testData/codeInsight/surroundWith/tryCatchFinally", "doTestWithTryCatchFinallySurrounder")
);
generateTest(
"idea/tests/",
"SurroundWithTryFinallyTestGenerated",
AbstractSurroundWithTest.class,
testModel("idea/testData/codeInsight/surroundWith/tryFinally", "doTestWithTryFinallySurrounder")
);
}
private static SimpleTestClassModel testModel(@NotNull String rootPath) {