com.canoo.webtest.boundary
Class UrlBoundary

java.lang.Object
  extended by com.canoo.webtest.boundary.UrlBoundary

public final class UrlBoundary
extends Object

Helper class for working with URLs.

Author:
Paul King

Method Summary
static URL tryCreateUrl(String urlStr)
          Helper method to create URLs.
static URL tryCreateUrlFromFileWithError(File urlFile, Step step)
          Helper method to create URLs.
static URL tryCreateUrlWithError(URL resource, String urlStr, Step step)
          Helper method to create URLs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

tryCreateUrl

public static URL tryCreateUrl(String urlStr)
Helper method to create URLs.

Parameters:
urlStr -
Returns:
the created URL
Throws:
RuntimeException - if the URL could not be created

tryCreateUrlWithError

public static URL tryCreateUrlWithError(URL resource,
                                        String urlStr,
                                        Step step)
Helper method to create URLs.

Parameters:
urlStr -
Returns:
the created URL
Throws:
RuntimeException - if the URL could not be created

tryCreateUrlFromFileWithError

public static URL tryCreateUrlFromFileWithError(File urlFile,
                                                Step step)
Helper method to create URLs.

Parameters:
urlFile -
Returns:
the created URL

Copyright © 2001-2007 Canoo Engineering AG, Basel. All rights reserved.