Generate Test: reformat template (IDEA-25540)

This commit is contained in:
Anton Makeev
2010-06-22 00:06:04 +04:00
parent 0ef7775b31
commit 05d9f27508
@@ -129,6 +129,9 @@ public class TestIntegrationUtils {
String name,
boolean automatic) {
Template template = createTestMethodTemplate(methodKind, descriptor, targetClass, name, automatic);
template.setToIndent(true);
template.setToReformat(true);
template.setToShortenLongNames(true);
final TextRange range = method.getTextRange();
editor.getDocument().replaceString(range.getStartOffset(), range.getEndOffset(), "");