This repository was archived by the owner on Mar 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
app/src/test/java/com/davidmiguel/gobees Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff 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 ());
You can’t perform that action at this time.
0 commit comments