public class TestUtils
extends java.lang.Object
Constructor and Description |
---|
TestUtils() |
Modifier and Type | Method and Description |
---|---|
static java.net.URI |
createURI(java.lang.String extension)
Creates a simple URI for the provided extension.
|
static java.net.URI |
createURI(java.lang.String extension,
java.lang.String host)
Creates a simple URI for the provided extension.
|
public static java.net.URI createURI(java.lang.String extension)
extension
- The extension for the test URI file. This file probably will
not actually exist. If null
, then the file will have
no extension.public static java.net.URI createURI(java.lang.String extension, java.lang.String host)
extension
- The extension for the test URI file. This file probably will
not actually exist. If null
, then the file will have
no extension.host
- The host for the file. If null, a local file URI will be
created, otherwise the host name will be used.