Skip to content

Commit

Permalink
Update NetworkStateHelperTestFromLollipop.java
Browse files Browse the repository at this point in the history
  • Loading branch information
AnatolyPristensky committed May 16, 2023
1 parent a924334 commit f4bd59c
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,6 @@ public void listenNetwork() {
/* Verify we didn't try to use older APIs after Lollipop on newer devices. */
verify(mContext, never()).registerReceiver(any(BroadcastReceiver.class), any(IntentFilter.class));
verify(mContext, never()).unregisterReceiver(any(BroadcastReceiver.class));

/* Check if Runtime exception catching properly */
when(mConnectivityManager.getNetworkInfo(any())).thenThrow(new NullPointerException());
helper.isNetworkConnected();
verifyStatic(AppCenterLog.class);
AppCenterLog.error(eq(AppCenter.LOG_TAG), anyString());
}

@Test
Expand Down

0 comments on commit f4bd59c

Please sign in to comment.