java.lang.Object
pro.verron.officestamper.test.TestUtils
A utility class for testing.
Provides methods for retrieving InputStreams from specified resource paths.
Typically used for accessing test resources.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic InputStream
getResource
(String path) Retrieves an InputStream for the specified resource path.static InputStream
getResource
(Path path) Retrieves an InputStream for the specified resource path.
-
Constructor Details
-
TestUtils
public TestUtils()
-
-
Method Details
-
getResource
Retrieves an InputStream for the specified resource path.- Parameters:
path
- the path of the resource- Returns:
- an InputStream for the specified resource
-
getResource
Retrieves an InputStream for the specified resource path.- Parameters:
path
- the path of the resource- Returns:
- an InputStream for the specified resource
-