コード例 #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:";
 }
コード例 #2
0
ファイル: ShareUITest.java プロジェクト: hash13/qabel-android
 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");
 }