test_class.declarator: mMockMondroidService
test_class.modifier: @Mock
test_class.original_string: @Mock
      MondroidService mMockMondroidService;
test_class.type: MondroidService
test_class.var_name: mMockMondroidService
test_class.declarator: mMockPreferencesHelper
test_class.modifier: @Mock
test_class.original_string: @Mock PreferencesHelper mMockPreferencesHelper;
test_class.type: PreferencesHelper
test_class.var_name: mMockPreferencesHelper
test_class.declarator: mDataManager
test_class.original_string: DataManager mDataManager;
test_class.type: DataManager
test_class.var_name: mDataManager
test_class.file: app/src/test/java/com/hitherejoe/mondroid/data/DataManagerTest.java
test_class.identifier: DataManagerTest
test_case.body: @Test
      public void getAccessTokenSavesAccessTokenInPreferences() {
          AccessToken accessToken = TestDataFactory.makeAccessToken();
          stubMondoServiceGetAccessToken(Single.just(accessToken));
  
          TestSubscriber<AccessToken> testSubscriber = new TestSubscriber<>();
          mDataManager.getAccessToken("code").subscribe(testSubscriber);
  
          verify(mMockPreferencesHelper).putAccessToken(accessToken);
      }
test_case.class_method_signature: DataManagerTest.getAccessTokenSavesAccessTokenInPreferences()
test_case.full_signature: @Test public void getAccessTokenSavesAccessTokenInPreferences()
test_case.identifier: getAccessTokenSavesAccessTokenInPreferences
test_case.invocations: makeAccessToken stubMondoServiceGetAccessToken just subscribe getAccessToken putAccessToken verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getAccessTokenSavesAccessTokenInPreferences()
focal_class.declarator: mMondroidService
focal_class.modifier: private final
focal_class.original_string: private final MondroidService mMondroidService;
focal_class.type: MondroidService
focal_class.var_name: mMondroidService
focal_class.declarator: mPreferencesHelper
focal_class.modifier: private final
focal_class.original_string: private final PreferencesHelper mPreferencesHelper;
focal_class.type: PreferencesHelper
focal_class.var_name: mPreferencesHelper
focal_class.file: app/src/main/java/com/hitherejoe/mondroid/data/DataManager.java
focal_class.identifier: DataManager
focal_class.class_method_signature: DataManager.DataManager(MondroidService mondroidService, PreferencesHelper preferencesHelper)
focal_class.full_signature: @Inject public  DataManager(MondroidService mondroidService, PreferencesHelper preferencesHelper)
focal_class.identifier: DataManager
focal_class.modifiers: @Inject public
focal_class.parameters: (MondroidService mondroidService, PreferencesHelper preferencesHelper)
focal_class.signature:  DataManager(MondroidService mondroidService, PreferencesHelper preferencesHelper)
focal_class.class_method_signature: DataManager.getAccessToken(String code)
focal_class.full_signature: public Single<AccessToken> getAccessToken(String code)
focal_class.identifier: getAccessToken
focal_class.modifiers: public
focal_class.parameters: (String code)
focal_class.return: Single<AccessToken>
focal_class.signature: Single<AccessToken> getAccessToken(String code)
focal_class.class_method_signature: DataManager.isUserSignedIn()
focal_class.full_signature: public Single<Boolean> isUserSignedIn()
focal_class.identifier: isUserSignedIn
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Single<Boolean>
focal_class.signature: Single<Boolean> isUserSignedIn()
focal_class.class_method_signature: DataManager.signOut()
focal_class.full_signature: public Completable signOut()
focal_class.identifier: signOut
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Completable
focal_class.signature: Completable signOut()
focal_class.class_method_signature: DataManager.getAccounts()
focal_class.full_signature: public Single<AccountsResponse> getAccounts()
focal_class.identifier: getAccounts
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Single<AccountsResponse>
focal_class.signature: Single<AccountsResponse> getAccounts()
focal_class.class_method_signature: DataManager.getAccountDetails()
focal_class.full_signature: public Single<AccountData> getAccountDetails()
focal_class.identifier: getAccountDetails
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Single<AccountData>
focal_class.signature: Single<AccountData> getAccountDetails()
focal_class.class_method_signature: DataManager.getBalance(String accountId)
focal_class.full_signature: public Single<Balance> getBalance(String accountId)
focal_class.identifier: getBalance
focal_class.modifiers: public
focal_class.parameters: (String accountId)
focal_class.return: Single<Balance>
focal_class.signature: Single<Balance> getBalance(String accountId)
focal_class.class_method_signature: DataManager.getTransactions(String accountId)
focal_class.full_signature: public Single<List<Transaction>> getTransactions(String accountId)
focal_class.identifier: getTransactions
focal_class.modifiers: public
focal_class.parameters: (String accountId)
focal_class.return: Single<List<Transaction>>
focal_class.signature: Single<List<Transaction>> getTransactions(String accountId)
focal_class.class_method_signature: DataManager.buildAuthorization()
focal_class.full_signature: private String buildAuthorization()
focal_class.identifier: buildAuthorization
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String buildAuthorization()
focal_method.body: public Single<AccessToken> getAccessToken(String code) {
          return mMondroidService.getAccessToken(null, "authorization_code", BuildConfig.CLIENT_ID,
                  BuildConfig.CLIENT_SECRET, BuildConfig.REDIRECT_URI, code)
                  .doOnSuccess(new Action1<AccessToken>() {
                      @Override
                      public void call(AccessToken accessToken) {
                          mPreferencesHelper.putAccessToken(accessToken);
                      }
                  });
      }
focal_method.class_method_signature: DataManager.getAccessToken(String code)
focal_method.full_signature: public Single<AccessToken> getAccessToken(String code)
focal_method.identifier: getAccessToken
focal_method.invocations: doOnSuccess getAccessToken putAccessToken
focal_method.modifiers: public
focal_method.parameters: (String code)
focal_method.return: Single<AccessToken>
focal_method.signature: Single<AccessToken> getAccessToken(String code)