diff options
author | Harald Musum <musum@verizonmedia.com> | 2020-06-28 10:32:40 +0200 |
---|---|---|
committer | Harald Musum <musum@verizonmedia.com> | 2020-06-28 10:32:40 +0200 |
commit | c45b449ed249b6c2cdd1910eb89ddd5ab342cb44 (patch) | |
tree | 08b5f26329ec2200b658f5bd6d778e607db075eb /configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/HttpGetConfigHandlerTest.java | |
parent | 0dbbd3c3be2870681480e73f9cc491e349b06610 (diff) |
Do not hardcode application id in MockTenantProvider and MockRequestHandler
Hardcoding makes it really hard to understand what is going on when you
try to use something else than the default application id in a test
Diffstat (limited to 'configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/HttpGetConfigHandlerTest.java')
-rw-r--r-- | configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/HttpGetConfigHandlerTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/HttpGetConfigHandlerTest.java b/configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/HttpGetConfigHandlerTest.java index 46a17795acf..97789caeb4b 100644 --- a/configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/HttpGetConfigHandlerTest.java +++ b/configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/HttpGetConfigHandlerTest.java @@ -41,7 +41,7 @@ public class HttpGetConfigHandlerTest { @Before public void setUp() { - mockRequestHandler = new MockRequestHandler(); + mockRequestHandler = new MockRequestHandler(ApplicationId.defaultId()); mockRequestHandler.setAllConfigs(new HashSet<>() {{ add(new ConfigKey<>("bar", "myid", "foo")); }} ); |