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

Commit 528e81f

Browse files
committed
Minor fixes
1 parent a4539c7 commit 528e81f

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

app/src/test/java/com/davidmiguel/gobees/apiary/ApiaryPresenterTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ public void loadHives_showHivesIntoView() {
114114
public void loadHivesError_showMsg() {
115115
// Given an initialized ApiaryPresenter
116116
// When loading of apiaries is requested
117-
apiaryPresenter.start();
117+
apiaryPresenter.start(); // Hive list fragment
118+
apiaryPresenter.start(); // Info fragment
118119
// Callback is captured and invoked with stubbed apiaries
119120
verify(goBeesRepository).getApiary(anyLong(), getApiaryCallbackArgumentCaptor.capture());
120121
getApiaryCallbackArgumentCaptor.getValue().onDataNotAvailable();

app/src/test/java/com/davidmiguel/gobees/hive/HivePresenterTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,11 @@ public void setupMocksAndView() {
103103
public void loadRecordings_showRecordingsIntoView() {
104104
// Given an initialized HivePresenter
105105
// When loading of recordings is requested
106-
hivePresenter.start();
107-
106+
hivePresenter.start(); // Recordings list fragment
107+
hivePresenter.start(); // Info fragment
108108
// Callback is captured and invoked with stubbed hives
109109
verify(goBeesRepository).getHiveWithRecordings(anyLong(), getHiveCallbackArgumentCaptor.capture());
110110
getHiveCallbackArgumentCaptor.getValue().onHiveLoaded(HIVE);
111-
112111
// Then progress indicator is shown
113112
InOrder inOrder = inOrder(hiveRecordingsView);
114113
// Then progress indicator is hidden and all hives are shown in UI
@@ -124,7 +123,8 @@ public void loadRecordings_showRecordingsIntoView() {
124123
public void loadRecordingsError_showMsg() {
125124
// Given an initialized HivePresenter
126125
// When loading of recordings is requested
127-
hivePresenter.start();
126+
hivePresenter.start(); // Recordings list fragment
127+
hivePresenter.start(); // Info fragment
128128
// Callback is captured and invoked with stubbed hives
129129
verify(goBeesRepository).getHiveWithRecordings(anyLong(),
130130
getHiveCallbackArgumentCaptor.capture());

0 commit comments

Comments
 (0)