Class UniquePaths
java.lang.Object
org.apache.sling.testing.clients.util.UniquePaths
Generate unique paths, for tests isolation
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
SEP
- See Also:
-
U_PATTERN
- See Also:
-
-
Constructor Details
-
UniquePaths
public UniquePaths()
-
-
Method Details
-
get
Return a unique path based on basePath- Parameters:
nameReference
- The simple class name of that object is used as part of the generated unique IDbasePath
- All occurrences ofU_PATTERN
in basePath are replaced by the generated unique ID. If $U$ is not found in basePath, unique ID is added at its end.- Returns:
- path with a unique value for each call.
-
get
Get a unique ID with no base path- Parameters:
nameReference
- The simple class name of that object is used as part of the generated unique ID- Returns:
- path with a unique value for each call
-