public final class TestUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static File |
getTestFolder(String name)
Gets a test folder by its resource name using
getTestResource(String). |
static File |
getTestJar()
An easy way to get a test jar.
|
static File |
getTestJar(String jarName)
Gets a test jar file by its resource name using
getTestResource(String). |
static URL |
getTestResource(String resourceName)
Gets a test resouce by its name using using
ClassLoader.getResource(String). |
static List<String> |
listFilesRecursively(File directory)
Lists all file (not directories) paths in directory specified.
|
public static File getTestJar()
public static File getTestJar(String jarName)
getTestResource(String).jarName - the resource name of a jar filepublic static File getTestFolder(String name)
getTestResource(String).name - the resource name of the folderpublic static URL getTestResource(String resourceName)
ClassLoader.getResource(String). Fails if the file was not found
(null).resourceName - the resource namepublic static List<String> listFilesRecursively(File directory)
directory - directory to list files inCopyright © 2000–2023 Vaadin Ltd. All rights reserved.