Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
Merged develop into master
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmigloz committed Feb 9, 2017
2 parents a8dfd21 + 528e81f commit c7c1771
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ public void loadHives_showHivesIntoView() {
public void loadHivesError_showMsg() {
// Given an initialized ApiaryPresenter
// When loading of apiaries is requested
apiaryPresenter.start();
apiaryPresenter.start(); // Hive list fragment
apiaryPresenter.start(); // Info fragment
// Callback is captured and invoked with stubbed apiaries
verify(goBeesRepository).getApiary(anyLong(), getApiaryCallbackArgumentCaptor.capture());
getApiaryCallbackArgumentCaptor.getValue().onDataNotAvailable();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,11 @@ public void setupMocksAndView() {
public void loadRecordings_showRecordingsIntoView() {
// Given an initialized HivePresenter
// When loading of recordings is requested
hivePresenter.start();

hivePresenter.start(); // Recordings list fragment
hivePresenter.start(); // Info fragment
// Callback is captured and invoked with stubbed hives
verify(goBeesRepository).getHiveWithRecordings(anyLong(), getHiveCallbackArgumentCaptor.capture());
getHiveCallbackArgumentCaptor.getValue().onHiveLoaded(HIVE);

// Then progress indicator is shown
InOrder inOrder = inOrder(hiveRecordingsView);
// Then progress indicator is hidden and all hives are shown in UI
Expand All @@ -124,7 +123,8 @@ public void loadRecordings_showRecordingsIntoView() {
public void loadRecordingsError_showMsg() {
// Given an initialized HivePresenter
// When loading of recordings is requested
hivePresenter.start();
hivePresenter.start(); // Recordings list fragment
hivePresenter.start(); // Info fragment
// Callback is captured and invoked with stubbed hives
verify(goBeesRepository).getHiveWithRecordings(anyLong(),
getHiveCallbackArgumentCaptor.capture());
Expand Down

0 comments on commit c7c1771

Please sign in to comment.