HttpUrlUtil { public static boolean isMobileView(@NonNull HttpUrl url) { return "mobileview".equals(url.queryParameter("action")); } private  HttpUrlUtil(); static boolean isRestBase(@NonNull HttpUrl url); static boolean isMobileView(@NonNull HttpUrl url);  }
@Test public void testIsMobileViewTest() { HttpUrl url = HttpUrl.parse(WikiSite.forLanguageCode("test").url()) .newBuilder() .addQueryParameter("action", "mobileview") .build(); assertThat(HttpUrlUtil.isMobileView(url), is(true)); }
@Test public void testIsMobileViewDev() { HttpUrl url = HttpUrl.parse("http: assertThat(HttpUrlUtil.isMobileView(url), is(true)); }
@Test public void testIsMobileViewRestBase() { HttpUrl url = HttpUrl.parse("https: assertThat(HttpUrlUtil.isMobileView(url), is(false)); }