opensavvy.prepared.compat.filesystem.resources¶
Types¶
ExperimentalResourceApi¶
@RequiresOptIn(message = "Experimental API to access and modify resources. Visit https://gitlab.com/opensavvy/groundwork/prepared/-/issues/66 to give your opinion before it is stabilized.")
annotation class ExperimentalResourceApi
ResourceDesignator¶
class ResourceDesignator
Allow manipulating Java resources as part of a test.
Functions¶
resource¶
inline fun <TargetClass : Any> resource(path: String): ResourceDesignator
Loads a Java resource named path that is in the same package as TargetClass.
fun resource(path: String, loader: ClassLoader): ResourceDesignator