@Override public void onCreate() { URLs.setBaseBlockURL(TestConstants.BLOCK_URL); URLs.setBaseAccountingURL(TestConstants.ACCOUNTING_URL); new AppPreference(this).setToken(TestConstants.TOKEN); super.onCreate(); ShadowLog.stream = System.out; JdbcPrefix.jdbcPrefix = "jdbc:sqlite:"; }
private void setupData() { URLs.setBaseBlockURL(TestConstants.BLOCK_URL); UITestHelper.disableBugReporting(QabelBoxApplication.getInstance().getApplicationContext()); mActivity = mActivityTestRule.getActivity(); mBoxHelper = new UIBoxHelper(QabelBoxApplication.getInstance()); mBoxHelper.bindService(QabelBoxApplication.getInstance()); mBoxHelper.createTokenIfNeeded(false); mBoxHelper.addIdentity("share"); }