mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
template fixed
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user