Package org.hibernate.testing.util
Class TestPathHelper
java.lang.Object
org.hibernate.testing.util.TestPathHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic FileresolveClassFile(Class knownClass) Essentially the same asresolveRootUrl(Class), but here we convert the root URL to a File (directory) reference.static FileresolveRootDirectory(Class knownClass) Essentially the same asresolveRootUrl(Class), but here we convert the root URL to a File (directory) reference.static URLresolveRootUrl(Class knownClass) Useful in cases where we need to deal with files/resources in the test compilation output dir of the project.
-
Method Details
-
resolveRootUrl
Useful in cases where we need to deal with files/resources in the test compilation output dir of the project. This gets a reference to the compilation output directory into which the given class was compiled.- Parameters:
knownClass- Reference to a Class known to be in the compilation output dir.- Returns:
- The root URL
-
resolveRootDirectory
Essentially the same asresolveRootUrl(Class), but here we convert the root URL to a File (directory) reference. In fact we delegate toresolveRootUrl(Class)and simply convert its return into a File reference.- Parameters:
knownClass- Reference to a Class known to be in the compilation output dir.- Returns:
- The root directory
-
resolveClassFile
Essentially the same asresolveRootUrl(Class), but here we convert the root URL to a File (directory) reference. In fact we delegate toresolveRootUrl(Class)and simply convert its return into a File reference.- Parameters:
knownClass- Reference to a Class known to be in the compilation output dir.- Returns:
- The root directory
-