@Test public void onResume_deliversBrowserSwitchResultViaClient() { sut.browserSwitchClient = browserSwitchClient; sut.onResume(); verify(browserSwitchClient).deliverResult(sut); }
@Override public void onResume() { super.onResume(); browserSwitchClient.deliverResult(this); }
BrowserSwitchFragment extends Fragment implements BrowserSwitchListener { @Override public void onResume() { super.onResume(); browserSwitchClient.deliverResult(this); } }
BrowserSwitchFragment extends Fragment implements BrowserSwitchListener { @Override public void onResume() { super.onResume(); browserSwitchClient.deliverResult(this); }  }
BrowserSwitchFragment extends Fragment implements BrowserSwitchListener { @Override public void onResume() { super.onResume(); browserSwitchClient.deliverResult(this); }  @Override void onAttach(@NonNull Context context); @Override void onCreate(Bundle savedInstanceState); @Override void onResume(); String getReturnUrlScheme(); @SuppressWarnings("WeakerAccess") void browserSwitch(int requestCode, String url); @SuppressWarnings("WeakerAccess") void browserSwitch(int requestCode, Intent intent); void browserSwitch(BrowserSwitchOptions browserSwitchOptions); abstract void onBrowserSwitchResult(int requestCode, BrowserSwitchResult result, @Nullable Uri returnUri); }
BrowserSwitchFragment extends Fragment implements BrowserSwitchListener { @Override public void onResume() { super.onResume(); browserSwitchClient.deliverResult(this); }  @Override void onAttach(@NonNull Context context); @Override void onCreate(Bundle savedInstanceState); @Override void onResume(); String getReturnUrlScheme(); @SuppressWarnings("WeakerAccess") void browserSwitch(int requestCode, String url); @SuppressWarnings("WeakerAccess") void browserSwitch(int requestCode, Intent intent); void browserSwitch(BrowserSwitchOptions browserSwitchOptions); abstract void onBrowserSwitchResult(int requestCode, BrowserSwitchResult result, @Nullable Uri returnUri);  }