org.apache.commons.latka
Class Suite

java.lang.Object
  extended by org.apache.commons.latka.Suite

public class Suite
extends Object

References a Latka XML suite, stored either inside a Reader or at a file URI.

Author:
Morgan Delagrange
See Also:
Latka#runTests(Suite, org.apache.commons.latka.event.LatkaEventInfo)

Field Summary
protected  URL _url
          test suite URL
 
Constructor Summary
Suite(URL url)
          Create a test suite from an XML document located at the designated URL.
 
Method Summary
 URL getURL()
          URL containing the test suite.
 void setURL(URL url)
          Set the URL of the test suite.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_url

protected URL _url
test suite URL

Constructor Detail

Suite

public Suite(URL url)
Create a test suite from an XML document located at the designated URL.

Parameters:
url - of a Latka XML suite
Method Detail

getURL

public URL getURL()
URL containing the test suite.

Returns:
test suite URL

setURL

public void setURL(URL url)
Set the URL of the test suite. Much like a SAX InputSource, you may set both a Reader and a URL, indicating that while the base XML document is inside a Reader, the parser resolves entities relative to the given URL.

Parameters:
url - the URL to set


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.