45464748495051
*/ public class EditorFactoryTest extends TestCase { @Override protected void setUp() throws Exception { EditorFactory.urlEncoder = new TestUrlEncoder(); }
31323334353637
private UrlEncoder originalEncoder; @Override public void setUp() { originalEncoder = URLFragment.urlEncoder; URLFragment.urlEncoder = new TestUrlEncoder(); }
39404142434445
@Override protected void setUp() throws Exception { super.setUp(); Config.setApiKey(""); RestApiRequest.urlEncoder = new TestUrlEncoder(); }
69707172737475
expect(plusService.getName()).andReturn(PLUS_NAME).anyTimes(); expect(plusService.getVersion()).andReturn(PLUS_VERSION).anyTimes(); replay(plusService); originalEncoder = UrlBuilder.urlEncoder; UrlBuilder.urlEncoder = new TestUrlEncoder(); }