made tests public to avoid reflection and "open modules"

see also https://issues.apache.org/jira/browse/SUREFIRE-1909
This commit is contained in:
Sebastian Stenzel
2021-06-09 10:14:08 +02:00
parent f9545b5532
commit f10d2b713b
7 changed files with 15 additions and 15 deletions

View File

@@ -99,12 +99,12 @@ public class Environment {
}
// visible for testing
Path getHomeDir() {
public Path getHomeDir() {
return getPath("user.home").orElseThrow();
}
// visible for testing
Stream<Path> getPaths(String propertyName) {
public Stream<Path> getPaths(String propertyName) {
Stream<String> rawSettingsPaths = getRawList(propertyName, PATH_LIST_SEP);
return rawSettingsPaths.filter(Predicate.not(Strings::isNullOrEmpty)).map(Paths::get).map(this::replaceHomeDir);
}