test_class.declarator: view
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private BalanceView view;
test_class.type: BalanceView
test_class.var_name: view
test_class.declarator: eosManager
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private EosManager eosManager;
test_class.type: EosManager
test_class.var_name: eosManager
test_class.declarator: pocketAppManager
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private PocketAppManager pocketAppManager;
test_class.type: PocketAppManager
test_class.var_name: pocketAppManager
test_class.declarator: customPreference
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private CustomPreference customPreference;
test_class.type: CustomPreference
test_class.var_name: customPreference
test_class.declarator: testScheduler
test_class.modifier: private
test_class.original_string: private TestScheduler testScheduler;
test_class.type: TestScheduler
test_class.var_name: testScheduler
test_class.declarator: presenter
test_class.modifier: private
test_class.original_string: private BalancePresenter presenter;
test_class.type: BalancePresenter
test_class.var_name: presenter
test_class.file: app/src/test/java/app/eospocket/android/ui/main/balance/BalancePresenterTest.java
test_class.identifier: BalancePresenterTest
test_case.body: @Test
      public void testGetCoinMarketCap_exception() {
          when(eosManager.getMarketPrice(anyString())).thenReturn(Single.create(emitter -> {
              emitter.onError(new IOException());
          }));
  
          presenter.getMarketPrice(Constants.EOS_COINMARKETCAP_ID);
          testScheduler.triggerActions();
  
          verify(view, times(1)).noMarketPrice();
      }
test_case.class_method_signature: BalancePresenterTest.testGetCoinMarketCap_exception()
test_case.full_signature: @Test public void testGetCoinMarketCap_exception()
test_case.identifier: testGetCoinMarketCap_exception
test_case.invocations: thenReturn when getMarketPrice anyString create onError getMarketPrice triggerActions noMarketPrice verify times
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetCoinMarketCap_exception()
focal_class.declarator: mEosManager
focal_class.modifier: private
focal_class.original_string: private EosManager mEosManager;
focal_class.type: EosManager
focal_class.var_name: mEosManager
focal_class.declarator: mPocketAppManager
focal_class.modifier: private
focal_class.original_string: private PocketAppManager mPocketAppManager;
focal_class.type: PocketAppManager
focal_class.var_name: mPocketAppManager
focal_class.declarator: mCustomPreference
focal_class.modifier: private
focal_class.original_string: private CustomPreference mCustomPreference;
focal_class.type: CustomPreference
focal_class.var_name: mCustomPreference
focal_class.declarator: mRxJavaSchedulers
focal_class.modifier: private
focal_class.original_string: private RxJavaSchedulers mRxJavaSchedulers;
focal_class.type: RxJavaSchedulers
focal_class.var_name: mRxJavaSchedulers
focal_class.declarator: mTokenAdapterDataModel
focal_class.modifier: private
focal_class.original_string: private AdapterDataModel<TokenItem> mTokenAdapterDataModel;
focal_class.type: AdapterDataModel<TokenItem>
focal_class.var_name: mTokenAdapterDataModel
focal_class.declarator: mTransferAdapterDataModel
focal_class.modifier: private
focal_class.original_string: private AdapterDataModel<TransferItem> mTransferAdapterDataModel;
focal_class.type: AdapterDataModel<TransferItem>
focal_class.var_name: mTransferAdapterDataModel
focal_class.file: app/src/main/java/app/eospocket/android/ui/main/balance/BalancePresenter.java
focal_class.identifier: BalancePresenter
focal_class.class_method_signature: BalancePresenter.BalancePresenter(BalanceView view, EosManager eosManager, PocketAppManager pocketAppManager,
              CustomPreference customPreference, RxJavaSchedulers rxJavaSchedulers)
focal_class.full_signature: public  BalancePresenter(BalanceView view, EosManager eosManager, PocketAppManager pocketAppManager,
              CustomPreference customPreference, RxJavaSchedulers rxJavaSchedulers)
focal_class.identifier: BalancePresenter
focal_class.modifiers: public
focal_class.parameters: (BalanceView view, EosManager eosManager, PocketAppManager pocketAppManager,
              CustomPreference customPreference, RxJavaSchedulers rxJavaSchedulers)
focal_class.signature:  BalancePresenter(BalanceView view, EosManager eosManager, PocketAppManager pocketAppManager,
              CustomPreference customPreference, RxJavaSchedulers rxJavaSchedulers)
focal_class.class_method_signature: BalancePresenter.onCreate()
focal_class.full_signature: @Override public void onCreate()
focal_class.identifier: onCreate
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void onCreate()
focal_class.class_method_signature: BalancePresenter.getTokens(@NonNull String accountName)
focal_class.full_signature: public void getTokens(@NonNull String accountName)
focal_class.identifier: getTokens
focal_class.modifiers: public
focal_class.parameters: (@NonNull String accountName)
focal_class.return: void
focal_class.signature: void getTokens(@NonNull String accountName)
focal_class.class_method_signature: BalancePresenter.getAccount(@NonNull String accountName)
focal_class.full_signature: public void getAccount(@NonNull String accountName)
focal_class.identifier: getAccount
focal_class.modifiers: public
focal_class.parameters: (@NonNull String accountName)
focal_class.return: void
focal_class.signature: void getAccount(@NonNull String accountName)
focal_class.class_method_signature: BalancePresenter.onPause()
focal_class.full_signature: @Override public void onPause()
focal_class.identifier: onPause
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void onPause()
focal_class.class_method_signature: BalancePresenter.onResume()
focal_class.full_signature: @Override public void onResume()
focal_class.identifier: onResume
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void onResume()
focal_class.class_method_signature: BalancePresenter.onDestroy()
focal_class.full_signature: @Override public void onDestroy()
focal_class.identifier: onDestroy
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void onDestroy()
focal_class.class_method_signature: BalancePresenter.getEosBalance(@NonNull EosAccountModel eosAccountModel)
focal_class.full_signature: public void getEosBalance(@NonNull EosAccountModel eosAccountModel)
focal_class.identifier: getEosBalance
focal_class.modifiers: public
focal_class.parameters: (@NonNull EosAccountModel eosAccountModel)
focal_class.return: void
focal_class.signature: void getEosBalance(@NonNull EosAccountModel eosAccountModel)
focal_class.class_method_signature: BalancePresenter.getTokenBalance(@NonNull String account, @NonNull String code, @NonNull String symbol)
focal_class.full_signature: public void getTokenBalance(@NonNull String account, @NonNull String code, @NonNull String symbol)
focal_class.identifier: getTokenBalance
focal_class.modifiers: public
focal_class.parameters: (@NonNull String account, @NonNull String code, @NonNull String symbol)
focal_class.return: void
focal_class.signature: void getTokenBalance(@NonNull String account, @NonNull String code, @NonNull String symbol)
focal_class.class_method_signature: BalancePresenter.getMarketPrice(@NonNull String id)
focal_class.full_signature: public void getMarketPrice(@NonNull String id)
focal_class.identifier: getMarketPrice
focal_class.modifiers: public
focal_class.parameters: (@NonNull String id)
focal_class.return: void
focal_class.signature: void getMarketPrice(@NonNull String id)
focal_class.class_method_signature: BalancePresenter.setTokenAdapterDataModel(@NonNull AdapterDataModel<TokenItem> tokenAdapterDataModel)
focal_class.full_signature: public void setTokenAdapterDataModel(@NonNull AdapterDataModel<TokenItem> tokenAdapterDataModel)
focal_class.identifier: setTokenAdapterDataModel
focal_class.modifiers: public
focal_class.parameters: (@NonNull AdapterDataModel<TokenItem> tokenAdapterDataModel)
focal_class.return: void
focal_class.signature: void setTokenAdapterDataModel(@NonNull AdapterDataModel<TokenItem> tokenAdapterDataModel)
focal_class.class_method_signature: BalancePresenter.setTransferAdapterDataModel(@NonNull AdapterDataModel<TransferItem> transferAdapterDataModel)
focal_class.full_signature: public void setTransferAdapterDataModel(@NonNull AdapterDataModel<TransferItem> transferAdapterDataModel)
focal_class.identifier: setTransferAdapterDataModel
focal_class.modifiers: public
focal_class.parameters: (@NonNull AdapterDataModel<TransferItem> transferAdapterDataModel)
focal_class.return: void
focal_class.signature: void setTransferAdapterDataModel(@NonNull AdapterDataModel<TransferItem> transferAdapterDataModel)
focal_class.class_method_signature: BalancePresenter.getTransfers(@NonNull String accountName, int page, int perPage)
focal_class.full_signature: public void getTransfers(@NonNull String accountName, int page, int perPage)
focal_class.identifier: getTransfers
focal_class.modifiers: public
focal_class.parameters: (@NonNull String accountName, int page, int perPage)
focal_class.return: void
focal_class.signature: void getTransfers(@NonNull String accountName, int page, int perPage)
focal_class.superclass: extends BasePresenter<BalanceView>
focal_method.body: public void getMarketPrice(@NonNull String id) {
          mEosManager.getMarketPrice(id)
          .subscribeOn(mRxJavaSchedulers.getIo())
          .observeOn(mRxJavaSchedulers.getMainThread())
          .subscribe(coinMarketCapData -> {
              if (coinMarketCapData.data == null) {
                  mView.noMarketPrice();
              } else {
                  mView.setMarketPrice(coinMarketCapData);
              }
          }, e -> {
              e.printStackTrace();
              mView.noMarketPrice();
          });
      }
focal_method.class_method_signature: BalancePresenter.getMarketPrice(@NonNull String id)
focal_method.full_signature: public void getMarketPrice(@NonNull String id)
focal_method.identifier: getMarketPrice
focal_method.invocations: subscribe observeOn subscribeOn getMarketPrice getIo getMainThread noMarketPrice setMarketPrice printStackTrace noMarketPrice
focal_method.modifiers: public
focal_method.parameters: (@NonNull String id)
focal_method.return: void
focal_method.signature: void getMarketPrice(@NonNull String id)