@Override protected void setUp() throws Exception { super.setUp(); FontLayoutService.setInstance( new MockFontLayoutService( BitmapFont.CHAR_WIDTH, BitmapFont.CHAR_HEIGHT, BitmapFont.CHAR_DESCENT)); }
@Override protected void tearDown() throws Exception { try { FontLayoutService.setInstance(null); } finally { super.tearDown(); } }
@Override protected void setUp() throws Exception { super.setUp(); if (myEditor == null) { return; } EditorSettings settings = myEditor.getSettings(); mySmartHome = settings.isSmartHome(); }
@Override protected void tearDown() throws Exception { try { if (myEditor != null) { EditorSettings settings = myEditor.getSettings(); settings.setUseSoftWraps(false); settings.setSmartHome(mySmartHome); } } finally { super.tearDown(); } }
public void tearDown() throws Exception { EditorSettingsExternalizable.getInstance().setVirtualSpace(myStoredVirtualSpaceSetting); super.tearDown(); }
public void setUp() throws Exception { super.setUp(); myStoredVirtualSpaceSetting = EditorSettingsExternalizable.getInstance().isVirtualSpace(); EditorSettingsExternalizable.getInstance().setVirtualSpace(false); }