org.springframework.boot.test.web.phpunit

Class LocalHostWebClient

  • java.lang.Object
    • com.gargoylesoftware.phpunit.WebClient
      • org.springframework.boot.test.web.phpunit.LocalHostWebClient
  • All Implemented Interfaces:
    Serializable, AutoCloseable


    public class LocalHostWebClient
    extends com.gargoylesoftware.phpunit.WebClient
    WebClient will automatically prefix relative URLs with localhost:${local.server.port}.
    Since:
    1.4.0
    Author:
    Phillip Webb
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class com.gargoylesoftware.phpunit.WebClient

        ABOUT_BLANK, ABOUT_SCHEME, URL_ABOUT_BLANK
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      <P extends com.gargoylesoftware.phpunit.Page>
      P
      getPage(String url) 
      • Methods inherited from class com.gargoylesoftware.phpunit.WebClient

        addCookie, addRequestHeader, addWebWindowListener, close, containsWebWindow, deregisterWebWindow, download, expandUrl, getActiveXObjectMap, getAjaxController, getAlertHandler, getAppletConfirmHandler, getAttachmentHandler, getBrowserVersion, getCache, getConfirmHandler, getCookieManager, getCookies, getCredentialsProvider, getCssErrorHandler, getCurrentWindow, getHTMLParserListener, getIncorrectnessListener, getInternals, getJavaScriptEngine, getJavaScriptErrorListener, getJavaScriptTimeout, getMSXMLActiveXObjectFactory, getOnbeforeunloadHandler, getOptions, getPage, getPage, getPage, getPage, getPageCreator, getPromptHandler, getRefreshHandler, getScriptPreProcessor, getStatusHandler, getStorageHolder, getTopLevelWindows, getWebConnection, getWebConsole, getWebStartHandler, getWebWindowByName, getWebWindows, guessContentType, initialize, initialize, initializeEmptyWindow, loadDownloadedResponses, loadWebResponse, loadWebResponseInto, openDialogWindow, openTargetWindow, openWindow, openWindow, printContentIfNecessary, registerWebWindow, removeRequestHeader, removeWebWindowListener, setActiveXObjectMap, setAjaxController, setAlertHandler, setAppletConfirmHandler, setAttachmentHandler, setCache, setConfirmHandler, setCookieManager, setCredentialsProvider, setCssErrorHandler, setCurrentWindow, setHTMLParserListener, setIncorrectnessListener, setJavaScriptEngine, setJavaScriptErrorListener, setJavaScriptTimeout, setOnbeforeunloadHandler, setPageCreator, setPromptHandler, setRefreshHandler, setScriptPreProcessor, setStatusHandler, setWebConnection, setWebStartHandler, throwFailingHttpStatusCodeExceptionIfNecessary, waitForBackgroundJavaScript, waitForBackgroundJavaScriptStartingBefore
    • Constructor Detail

      • LocalHostWebClient

        public LocalHostWebClient(Environment environment)
    • Method Detail

      • getPage

        public <P extends com.gargoylesoftware.phpunit.Page> P getPage(String url)
                                                                 throws IOException,
                                                                        com.gargoylesoftware.phpunit.FailingHttpStatusCodeException,
                                                                        MalformedURLException
        Overrides:
        getPage in class com.gargoylesoftware.phpunit.WebClient
        Throws:
        IOException
        com.gargoylesoftware.phpunit.FailingHttpStatusCodeException
        MalformedURLException