org.apache.commons.jelly.tags.junit
public abstract class JellyTestSuite extends java.lang.Object
Constructor and Description |
---|
JellyTestSuite() |
Modifier and Type | Method and Description |
---|---|
static junit.framework.TestSuite |
createTestSuite(java.lang.Class testClass,
java.lang.String script)
Helper method to create a test suite from a file name on the class path
in the package of the given class.
|
static junit.framework.TestSuite |
createTestSuite(java.net.URL script)
Helper method to create a test suite from the given Jelly script
|
public static junit.framework.TestSuite createTestSuite(java.lang.Class testClass, java.lang.String script) throws java.lang.Exception
createTestSuite( Foo.class, "suite.jelly" );
which would loaad the 'suite.jelly script from the same package as the Foo
class on the classpath.testClass
- is the test class used to load the script via the classpathscript
- is the name of the script, which is typically just a name, no directory.java.lang.Exception
public static junit.framework.TestSuite createTestSuite(java.net.URL script) throws java.lang.Exception
script
- is the URL to the script which should create a TestSuitejava.lang.Exception
Copyright © 2014. All Rights Reserved.