public class TestUtils
extends Object
TODO: See if we can move this to the test codebase by specifying test dependencies between projects.
Constructor and Description |
---|
TestUtils() |
Modifier and Type | Method and Description |
---|---|
static java.io.File |
createCompiledClass(String className,
java.io.File destDir,
String value)
Creates a compiled class with the given name.
|
static java.net.URL |
createJar(scala.collection.Seq<java.io.File> files,
java.io.File jarFile)
Create a jar file that contains this set of files.
|
static java.net.URL |
createJarWithClasses(scala.collection.Seq<String> classNames,
String value)
Create a jar that defines classes with the given names.
|
public static java.net.URL createJarWithClasses(scala.collection.Seq<String> classNames, String value)
Note: if this is used during class loader tests, class names should be unique in order to avoid interference between tests.
public static java.net.URL createJar(scala.collection.Seq<java.io.File> files, java.io.File jarFile)
public static java.io.File createCompiledClass(String className, java.io.File destDir, String value)