template fixed

This commit is contained in:
Anna Kozlova
2012-05-18 11:42:15 +04:00
parent f408b8a46a
commit 2350d7f3e4
3 changed files with 3 additions and 2 deletions
@@ -110,6 +110,6 @@ public abstract class JavaTestFramework implements TestFramework {
protected PsiMethod createSetUpPatternMethod(JVMElementFactory factory) {
final FileTemplate template = FileTemplateManager.getInstance().getCodeTemplate(getSetUpMethodFileTemplateDescriptor().getFileName());
return factory.createMethodFromText(StringUtil.replace(template.getText(), "${BODY}", ""), null);
return factory.createMethodFromText(StringUtil.replace(template.getText(), "${BODY}\n", ""), null);
}
}
@@ -2,7 +2,7 @@ import junit.framework.TestCase;
public class T extends TestCase {
private int i;
protected void setUp() throws Exception {
public void setUp() throws Exception {
super.setUp();
i = 9;
}