aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-maven/archiva-maven-repository/src
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2019-05-25 10:29:55 +0200
committerMartin Stockhammer <martin_s@apache.org>2019-05-25 10:29:55 +0200
commit53c58d457dd881ca517abec1a1d86c168d26de38 (patch)
treee9b2e48705635cf18c7bec24194d8ea995f83fee /archiva-modules/archiva-maven/archiva-maven-repository/src
parentebd149e6b3e58c2fb769f4fc70161addd12c958c (diff)
downloadarchiva-53c58d457dd881ca517abec1a1d86c168d26de38.tar.gz
archiva-53c58d457dd881ca517abec1a1d86c168d26de38.zip
Adding new methods after interface change
Diffstat (limited to 'archiva-modules/archiva-maven/archiva-maven-repository/src')
-rw-r--r--archiva-modules/archiva-maven/archiva-maven-repository/src/test/java/org/apache/archiva/configuration/TestConfiguration.java5
-rw-r--r--archiva-modules/archiva-maven/archiva-maven-repository/src/test/java/org/apache/archiva/metadata/repository/storage/maven2/conf/MockConfiguration.java7
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");
}
}
+
+
}