public class TestPathHelper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.io.File |
resolveClassFile(java.lang.Class knownClass)
Essentially the same as
resolveRootUrl(Class), but here we convert the root URL to a File
(directory) reference. |
static java.io.File |
resolveRootDirectory(java.lang.Class knownClass)
Essentially the same as
resolveRootUrl(Class), but here we convert the root URL to a File
(directory) reference. |
static java.net.URL |
resolveRootUrl(java.lang.Class knownClass)
Useful in cases where we need to deal with files/resources in the test compilation output dir of the
project.
|
public static java.net.URL resolveRootUrl(java.lang.Class knownClass)
knownClass - Reference to a Class known to be in the compilation output dir.public static java.io.File resolveRootDirectory(java.lang.Class knownClass)
resolveRootUrl(Class), but here we convert the root URL to a File
(directory) reference. In fact we delegate to resolveRootUrl(Class) and simply convert its
return into a File reference.knownClass - Reference to a Class known to be in the compilation output dir.public static java.io.File resolveClassFile(java.lang.Class knownClass)
resolveRootUrl(Class), but here we convert the root URL to a File
(directory) reference. In fact we delegate to resolveRootUrl(Class) and simply convert its
return into a File reference.knownClass - Reference to a Class known to be in the compilation output dir.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.