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 getTransactionsCompletesAndEmitsTransactions() {
          stubPreferencesHelperGetAccessToken(TestDataFactory.makeAccessToken());
  
          List<Transaction> transactions = TestDataFactory.makeTransactions(5);
          MondroidService.TransactionResponse transactionResponse = new MondroidService.TransactionResponse();
          transactionResponse.transactions = transactions;
          stubMondoServiceGetTransactions(Single.just(transactionResponse));
  
          TestSubscriber<List<Transaction>> testSubscriber = new TestSubscriber<>();
          mDataManager.getTransactions("account_id").subscribe(testSubscriber);
          testSubscriber.assertCompleted();
          testSubscriber.assertValue(transactions);
      }
test_case.class_method_signature: DataManagerTest.getTransactionsCompletesAndEmitsTransactions()
test_case.full_signature: @Test public void getTransactionsCompletesAndEmitsTransactions()
test_case.identifier: getTransactionsCompletesAndEmitsTransactions
test_case.invocations: stubPreferencesHelperGetAccessToken makeAccessToken makeTransactions stubMondoServiceGetTransactions just subscribe getTransactions assertCompleted assertValue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getTransactionsCompletesAndEmitsTransactions()
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<List<Transaction>> getTransactions(String accountId) {
          String token = buildAuthorization();
          return mMondroidService.getTransactions(token, accountId, "merchant")
                  .map(new Func1<MondroidService.TransactionResponse, List<Transaction>>() {
                      @Override
                      public List<Transaction> call(MondroidService.TransactionResponse transactionResponse) {
                          return transactionResponse.transactions;
                      }
                  });
      }
focal_method.class_method_signature: DataManager.getTransactions(String accountId)
focal_method.full_signature: public Single<List<Transaction>> getTransactions(String accountId)
focal_method.identifier: getTransactions
focal_method.invocations: buildAuthorization map getTransactions
focal_method.modifiers: public
focal_method.parameters: (String accountId)
focal_method.return: Single<List<Transaction>>
focal_method.signature: Single<List<Transaction>> getTransactions(String accountId)