@Override protected void setUp() throws Exception { super.setUp(); myPrevFormatSetting = HbConfig.isFormattingEnabled(); HbConfig.setFormattingEnabled(true); }
/** * This sanity check should be enough to ensure that we don't format on Enter when the formatter * is disabled */ public void testEnterWithFormatterDisabled() { boolean previousFormatterSetting = HbConfig.isFormattingEnabled(); HbConfig.setFormattingEnabled(false); doEnterTest("{{#foo}}<caret>", "{{#foo}}\n" + "<caret>"); HbConfig.setFormattingEnabled(previousFormatterSetting); }
@Override protected void tearDown() throws Exception { HbConfig.setFormattingEnabled(myPrevFormatSetting); super.tearDown(); }