コード例 #1
0
  @Override
  public void setUp() throws Exception {
    super.setUp();

    DependencyInjector.resetForIntegrationTesting(getContext());
    initMocks(this);
    DependencyInjector.setTotpClock(mockTotpClock);

    accountDb = DependencyInjector.getAccountDb();
    otpProvider = new OtpProvider(accountDb, mockTotpClock);
  }
 @Override
 protected void setUp() throws Exception {
   super.setUp();
   DependencyInjector.resetForIntegrationTesting(getInstrumentation().getTargetContext());
   TestUtilities.withLaunchPreventingStartActivityListenerInDependencyResolver();
 }