- java.lang.Object
-
- com.soebes.junit.jupiter.resources.ResourcePath
-
@API(status=EXPERIMENTAL, since="0.1.0") public class ResourcePath extends Object
- Author:
- Karl Heinz Marbaise
-
-
Constructor Summary
Constructors Constructor Description ResourcePath(ClassLoader classLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Path
get(String name)
(package private) ClassLoader
getClassLoader()
Stream<String>
lines(String name)
Stream<String>
lines(String name, Charset cs)
byte[]
readAllBytes(String name)
List<String>
readAllLines(String name)
List<String>
readAllLines(String name, Charset cs)
-
-
-
Constructor Detail
-
ResourcePath
ResourcePath(ClassLoader classLoader)
-
-
Method Detail
-
getClassLoader
ClassLoader getClassLoader()
-
get
public Path get(String name)
- Parameters:
name
- The name of the resource you would like to get.- Returns:
- The
Path
of the requested resource. - Throws:
ResourceNotFoundException
- in case of trying to access a resource which does not exist.
-
readAllBytes
public byte[] readAllBytes(String name)
-
-