Skip to content

Commit

Permalink
Fix tests on familyregister progressdialog
Browse files Browse the repository at this point in the history
  • Loading branch information
LZRS committed Mar 31, 2022
1 parent cd0e495 commit 4f1dca9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ public void testRegisterBottomNavigation() {
@Test
public void testShowProgressShouldShowProgressDialog() {
FamilyRegisterActivity spyActivity = Mockito.spy(activity);
Whitebox.setInternalState(spyActivity, "progressDialog", progressDialog);
// Whitebox.setInternalState(spyActivity, "progressDialog", progressDialog);
spyActivity.showProgressDialog();
Mockito.verify(progressDialog).show();
ProgressDialog progressDialog_ = Mockito.spy((ProgressDialog) Whitebox.getInternalState(spyActivity, "progressDialog"));
Assert.assertTrue(progressDialog_.isShowing());
}

@Test
Expand Down

0 comments on commit 4f1dca9

Please sign in to comment.