diff options
author | Martin Stockhammer <martin_s@apache.org> | 2019-05-25 10:29:55 +0200 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2019-05-25 10:29:55 +0200 |
commit | 53c58d457dd881ca517abec1a1d86c168d26de38 (patch) | |
tree | e9b2e48705635cf18c7bec24194d8ea995f83fee /archiva-modules/archiva-maven/archiva-maven-repository/src | |
parent | ebd149e6b3e58c2fb769f4fc70161addd12c958c (diff) | |
download | archiva-53c58d457dd881ca517abec1a1d86c168d26de38.tar.gz archiva-53c58d457dd881ca517abec1a1d86c168d26de38.zip |
Adding new methods after interface change
Diffstat (limited to 'archiva-modules/archiva-maven/archiva-maven-repository/src')
2 files changed, 12 insertions, 0 deletions
diff --git a/archiva-modules/archiva-maven/archiva-maven-repository/src/test/java/org/apache/archiva/configuration/TestConfiguration.java b/archiva-modules/archiva-maven/archiva-maven-repository/src/test/java/org/apache/archiva/configuration/TestConfiguration.java index ac24a3462..9087a618d 100644 --- a/archiva-modules/archiva-maven/archiva-maven-repository/src/test/java/org/apache/archiva/configuration/TestConfiguration.java +++ b/archiva-modules/archiva-maven/archiva-maven-repository/src/test/java/org/apache/archiva/configuration/TestConfiguration.java @@ -116,6 +116,11 @@ public class TestConfiguration } @Override + public Path getRepositoryGroupBaseDir() { + return getDataDirectory().resolve("groups"); + } + + @Override public Path getDataDirectory() { if (configuration!=null && configuration.getArchivaRuntimeConfiguration()!=null && StringUtils.isNotEmpty(configuration.getArchivaRuntimeConfiguration().getDataDirectory())) { diff --git a/archiva-modules/archiva-maven/archiva-maven-repository/src/test/java/org/apache/archiva/metadata/repository/storage/maven2/conf/MockConfiguration.java b/archiva-modules/archiva-maven/archiva-maven-repository/src/test/java/org/apache/archiva/metadata/repository/storage/maven2/conf/MockConfiguration.java index 474d3dfe2..46a24907a 100644 --- a/archiva-modules/archiva-maven/archiva-maven-repository/src/test/java/org/apache/archiva/metadata/repository/storage/maven2/conf/MockConfiguration.java +++ b/archiva-modules/archiva-maven/archiva-maven-repository/src/test/java/org/apache/archiva/metadata/repository/storage/maven2/conf/MockConfiguration.java @@ -160,6 +160,11 @@ public class MockConfiguration } @Override + public Path getRepositoryGroupBaseDir() { + return getDataDirectory().resolve("groups"); + } + + @Override public Path getDataDirectory() { if (configuration!=null && StringUtils.isNotEmpty(configuration.getArchivaRuntimeConfiguration().getDataDirectory())) { return Paths.get(configuration.getArchivaRuntimeConfiguration().getDataDirectory()); @@ -167,4 +172,6 @@ public class MockConfiguration return getAppServerBaseDir().resolve("data"); } } + + } |