WebFragment extends ActionBarFragment { @Nullable protected WebViewClient onCreateWebViewClient() { return new WebViewClient() { @Override public void onPageFinished(final WebView view, final String url) { super.onPageFinished(view, url); notifyLoadingFinished(url); } @Override public void onPageStarted(final WebView view, final String url, final Bitmap favicon) { super.onPageStarted(view, url, favicon); notifyLoadingStarted(url); } }; }  static boolean isValidWebUrl(@Nullable final String url); @NonNull static WebFragment newInstance(); @NonNull static WebFragment newInstance(@NonNull final WebOptions options); @Override void onCreate(@Nullable final Bundle savedInstanceState); @NonNull final WebOptions getOptions(); void setOnWebContentLoadingListener(@Nullable final OnWebContentLoadingListener listener); @Override View onCreateView(@NonNull final LayoutInflater inflater, @Nullable final ViewGroup container, @Nullable final Bundle savedInstanceState); @Nullable WebView getWebView(); @Override void onActivityCreated(@Nullable final Bundle savedInstanceState); boolean loadContent(@Nullable final String content); @Nullable String getContent(); @ContentType int getContentType(); @Override void onSaveInstanceState(@NonNull final Bundle state); @Override void onDestroyView();  }
@Test public void testOnCreateWebViewClient() { final WebFragment fragment = new WebFragment(); assertThat(fragment.onCreateWebViewClient(), is(notNullValue())); }