diff options
author | James Moger <james.moger@gitblit.com> | 2013-11-18 22:31:37 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-11-29 11:05:46 -0500 |
commit | cacf8bff097fbb66a7be1bfe267b5da2605145f8 (patch) | |
tree | 7096df41b5944c569b1db24203eae8dcfa26ba04 /src/test/java/com/gitblit/tests/mock | |
parent | 79cad53bba094cffa1d25581edbf4972a5158cd4 (diff) | |
download | gitblit-cacf8bff097fbb66a7be1bfe267b5da2605145f8.tar.gz gitblit-cacf8bff097fbb66a7be1bfe267b5da2605145f8.zip |
Use Dagger to inject managers into all filters and servlets
Change-Id: I9bb2cc0cbfac9841b13bed15a474fefb24355cd4
Diffstat (limited to 'src/test/java/com/gitblit/tests/mock')
-rw-r--r-- | src/test/java/com/gitblit/tests/mock/MemorySettings.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/test/java/com/gitblit/tests/mock/MemorySettings.java b/src/test/java/com/gitblit/tests/mock/MemorySettings.java index 5b8e60a9..e3f971f0 100644 --- a/src/test/java/com/gitblit/tests/mock/MemorySettings.java +++ b/src/test/java/com/gitblit/tests/mock/MemorySettings.java @@ -16,6 +16,7 @@ */ package com.gitblit.tests.mock; +import java.util.HashMap; import java.util.Map; import java.util.Properties; @@ -25,6 +26,10 @@ public class MemorySettings extends IStoredSettings { private Map<String, Object> backingMap; + public MemorySettings() { + this(new HashMap<String, Object>()); + } + public MemorySettings(Map<String, Object> backingMap) { super(MemorySettings.class); this.backingMap = backingMap; @@ -38,8 +43,8 @@ public class MemorySettings extends IStoredSettings { return props; } - public void put(Object key, Object value) { - backingMap.put(key.toString(), value); + public void put(String key, Object value) { + backingMap.put(key, value); } @Override |