From 69db2ce7ef9da5374a32dcf1450e28389443cc1a Mon Sep 17 00:00:00 2001 From: Anton Makeev Date: Thu, 1 Jul 2010 13:32:41 +0400 Subject: [PATCH] Generate Test Method: invalid template (IDEA-56210) --- .../src/com/intellij/testIntegration/TestIntegrationUtils.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/java/java-impl/src/com/intellij/testIntegration/TestIntegrationUtils.java b/java/java-impl/src/com/intellij/testIntegration/TestIntegrationUtils.java index 2f71133cf66d..164fa4148b46 100644 --- a/java/java-impl/src/com/intellij/testIntegration/TestIntegrationUtils.java +++ b/java/java-impl/src/com/intellij/testIntegration/TestIntegrationUtils.java @@ -176,6 +176,8 @@ public class TestIntegrationUtils { if (name == null) name = methodKind.getDefaultName(); + templateText = StringUtil.replace(templateText, "${BODY}", ""); + int from = 0; while (true) { int index = templateText.indexOf("${NAME}", from);