aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/plugins/stage-repository-merge
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2017-11-01 15:40:05 +0100
committerMartin Stockhammer <martin_s@apache.org>2017-11-01 15:40:05 +0100
commit17f2989fe13244ad4bb047e4764d4aecda40560a (patch)
tree81d032a04372c9b71ee26b7d79e97175a22b7198 /archiva-modules/plugins/stage-repository-merge
parente4941b469668189cad9d45026423f6da9ee22af6 (diff)
downloadarchiva-17f2989fe13244ad4bb047e4764d4aecda40560a.tar.gz
archiva-17f2989fe13244ad4bb047e4764d4aecda40560a.zip
Adapting some plugins to the new repository api
Diffstat (limited to 'archiva-modules/plugins/stage-repository-merge')
-rw-r--r--archiva-modules/plugins/stage-repository-merge/src/test/java/org/apache/archiva/configuration/StubConfiguration.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/archiva-modules/plugins/stage-repository-merge/src/test/java/org/apache/archiva/configuration/StubConfiguration.java b/archiva-modules/plugins/stage-repository-merge/src/test/java/org/apache/archiva/configuration/StubConfiguration.java
index b4659ac34..1709f1930 100644
--- a/archiva-modules/plugins/stage-repository-merge/src/test/java/org/apache/archiva/configuration/StubConfiguration.java
+++ b/archiva-modules/plugins/stage-repository-merge/src/test/java/org/apache/archiva/configuration/StubConfiguration.java
@@ -23,6 +23,9 @@ import org.apache.archiva.redback.components.registry.RegistryException;
import org.apache.archiva.redback.components.registry.RegistryListener;
import org.springframework.stereotype.Service;
+import java.util.List;
+import java.util.Locale;
+
@Service("archivaConfiguration#mocked")
public class StubConfiguration
implements ArchivaConfiguration
@@ -77,4 +80,16 @@ public class StubConfiguration
{
// no op
}
+
+ @Override
+ public Locale getDefaultLocale( )
+ {
+ return Locale.getDefault();
+ }
+
+ @Override
+ public List<Locale.LanguageRange> getLanguagePriorities( )
+ {
+ return Locale.LanguageRange.parse( "en,fr,de" );
+ }
}