Package org.infinispan.commons.test
Class CommonsTestingUtil
java.lang.Object
org.infinispan.commons.test.CommonsTestingUtil
- Since:
- 11.0
- Author:
- Tristan Tarrant <tristan@infinispan.org>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic Stringstatic StringtmpDirectory(Class<?> test) Creates a path to a unique (per test) temporary directory.static StringtmpDirectory(String... folders)
-
Field Details
-
TEST_PATH
- See Also:
-
-
Constructor Details
-
CommonsTestingUtil
public CommonsTestingUtil()
-
-
Method Details
-
tmpDirectory
Creates a path to a unique (per test) temporary directory. By default, the directory is created in the platform's temp directory, but the location can be overridden with theinfinispan.test.tmpdirsystem property.- Parameters:
test- test that requires this directory.- Returns:
- an absolute path
-
tmpDirectory
- Returns:
- an absolute path
-
tmpDirectory
-
loadFileAsString
- Throws:
IOException
-