@Test public void testUserAgent() { w.userAgent = "foo"; assertThat(w.getUserAgent(), is("foo")); }
@Override public String getUserAgent() { return userAgent; }
StubWindow implements IsWindow { @Override public String getUserAgent() { return userAgent; } }
StubWindow implements IsWindow { @Override public String getUserAgent() { return userAgent; }  }
StubWindow implements IsWindow { @Override public String getUserAgent() { return userAgent; }  void setLocation(String url); @Override void open(final String url, final String name, final String features); @Override void scrollTo(final int x, final int y); @Override int getClientHeight(); @Override int getClientWidth(); @Override int getScrollLeft(); @Override int getScrollTop(); @Override int getScrollHeight(); @Override int getScrollWidth(); @Override HandlerRegistration addResizeHandler(final ResizeHandler handler); @Override void alert(String message); @Override void reload(); @Override IsUrlBuilder createUrlBuilder(); @Override void assign(String newUrl); @Override void replace(String newUrl); @Override String getHash(); @Override String getHost(); @Override String getHostName(); @Override String getHref(); @Override String getPath(); @Override String getPort(); @Override String getProtocol(); @Override String getQueryString(); @Override String getParameter(String name); @Override String getUserAgent(); @Override Map<String, List<String>> getParameterMap(); }
StubWindow implements IsWindow { @Override public String getUserAgent() { return userAgent; }  void setLocation(String url); @Override void open(final String url, final String name, final String features); @Override void scrollTo(final int x, final int y); @Override int getClientHeight(); @Override int getClientWidth(); @Override int getScrollLeft(); @Override int getScrollTop(); @Override int getScrollHeight(); @Override int getScrollWidth(); @Override HandlerRegistration addResizeHandler(final ResizeHandler handler); @Override void alert(String message); @Override void reload(); @Override IsUrlBuilder createUrlBuilder(); @Override void assign(String newUrl); @Override void replace(String newUrl); @Override String getHash(); @Override String getHost(); @Override String getHostName(); @Override String getHref(); @Override String getPath(); @Override String getPort(); @Override String getProtocol(); @Override String getQueryString(); @Override String getParameter(String name); @Override String getUserAgent(); @Override Map<String, List<String>> getParameterMap(); final List<String> alerts; public String opened; public String assigned; public String replaced; public boolean reloaded; public int x; public int y; public String protocol; public String hostName; public String path; public String port; public String queryString; public String hash; public String userAgent; }