setUp() and tearDown() moved up
This commit is contained in:
@@ -45,6 +45,20 @@ import java.util.Arrays;
|
|||||||
* @since 2/10/12
|
* @since 2/10/12
|
||||||
*/
|
*/
|
||||||
public class LiveTemplatesTest extends LightCodeInsightFixtureTestCase {
|
public class LiveTemplatesTest extends LightCodeInsightFixtureTestCase {
|
||||||
|
@Override
|
||||||
|
protected void setUp() throws Exception {
|
||||||
|
super.setUp();
|
||||||
|
myFixture.setTestDataPath(new File(PluginTestCaseBase.getTestDataPathBase(), "/templates").getPath() +
|
||||||
|
File.separator);
|
||||||
|
((TemplateManagerImpl) TemplateManager.getInstance(getProject())).setTemplateTesting(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void tearDown() throws Exception {
|
||||||
|
((TemplateManagerImpl) TemplateManager.getInstance(getProject())).setTemplateTesting(false);
|
||||||
|
super.tearDown();
|
||||||
|
}
|
||||||
|
|
||||||
public void testSout() {
|
public void testSout() {
|
||||||
paremeterless();
|
paremeterless();
|
||||||
}
|
}
|
||||||
@@ -266,24 +280,10 @@ public class LiveTemplatesTest extends LightCodeInsightFixtureTestCase {
|
|||||||
actionHandler.execute(myFixture.getEditor(), DataManager.getInstance().getDataContext(myFixture.getEditor().getComponent()));
|
actionHandler.execute(myFixture.getEditor(), DataManager.getInstance().getDataContext(myFixture.getEditor().getComponent()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void tearDown() throws Exception {
|
|
||||||
((TemplateManagerImpl) TemplateManager.getInstance(getProject())).setTemplateTesting(false);
|
|
||||||
super.tearDown();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void assertStringItems(@NonNls String... items) {
|
private void assertStringItems(@NonNls String... items) {
|
||||||
assertEquals(Arrays.asList(items), Arrays.asList(getItemStringsSorted()));
|
assertEquals(Arrays.asList(items), Arrays.asList(getItemStringsSorted()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void setUp() throws Exception {
|
|
||||||
super.setUp();
|
|
||||||
myFixture.setTestDataPath(new File(PluginTestCaseBase.getTestDataPathBase(), "/templates").getPath() +
|
|
||||||
File.separator);
|
|
||||||
((TemplateManagerImpl) TemplateManager.getInstance(getProject())).setTemplateTesting(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
private String[] getItemStrings() {
|
private String[] getItemStrings() {
|
||||||
LookupEx lookup = LookupManager.getActiveLookup(myFixture.getEditor());
|
LookupEx lookup = LookupManager.getActiveLookup(myFixture.getEditor());
|
||||||
assertNotNull(lookup);
|
assertNotNull(lookup);
|
||||||
|
|||||||
Reference in New Issue
Block a user