Exemplo n.º 1
0
 @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:";
 }
Exemplo n.º 2
0
 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");
 }