TurbolinksHelper { static WebView createWebView(Context applicationContext) { MutableContextWrapper contextWrapper = new MutableContextWrapper(applicationContext); WebView webView = new WebView(contextWrapper); configureWebViewDefaults(webView); setWebViewLayoutParams(webView); return webView; }    }
@Test public void createWebView() { assertThat(TurbolinksHelper.createWebView(context)).isNotNull(); }
@Test public void creatingWebViewHasCorrectSettings() { WebSettings settings = TurbolinksHelper.createWebView(context).getSettings(); assertThat(settings.getJavaScriptEnabled()).isTrue(); assertThat(settings.getDomStorageEnabled()).isTrue(); assertThat(settings.getDatabaseEnabled()).isTrue(); }