HttpUrlUtil { public static boolean isRestBase(@NonNull HttpUrl url) { return !Collections.disjoint(url.encodedPathSegments(), RESTBASE_SEGMENT_IDENTIFIERS); } private  HttpUrlUtil(); static boolean isRestBase(@NonNull HttpUrl url); static boolean isMobileView(@NonNull HttpUrl url);  }
@Test public void testIsRestBaseProd() { HttpUrl url = HttpUrl.parse("https: assertThat(HttpUrlUtil.isRestBase(url), is(true)); }
@Test public void testIsRestBaseLabs() { HttpUrl url = HttpUrl.parse("http: assertThat(HttpUrlUtil.isRestBase(url), is(true)); }
@Test public void testIsRestBaseDev() { HttpUrl url = HttpUrl.parse("http: assertThat(HttpUrlUtil.isRestBase(url), is(true)); }
@Test public void testIsRestBaseMediaWikiTest() { HttpUrl url = HttpUrl.parse(WikiSite.forLanguageCode("test").url()); assertThat(HttpUrlUtil.isRestBase(url), is(false)); }
@Test public void testIsRestBaseMediaWikiDev() { HttpUrl url = HttpUrl.parse("http: assertThat(HttpUrlUtil.isRestBase(url), is(false)); }