aboutsummaryrefslogtreecommitdiffstats
path: root/configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/HttpListConfigsHandlerTest.java
diff options
context:
space:
mode:
authorHarald Musum <musum@verizonmedia.com>2020-06-02 14:04:52 +0200
committerHarald Musum <musum@verizonmedia.com>2020-06-02 14:04:52 +0200
commit0b9fcd525bc3caba42831c44c8a341dcf4fd43ae (patch)
tree433ee1d075ff1743a5734958df7ae6eecb7a916d /configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/HttpListConfigsHandlerTest.java
parentcffc1ba59d9c21ad36442b76eb28db2f8699ce03 (diff)
Get rid of TenantBuilder
Diffstat (limited to 'configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/HttpListConfigsHandlerTest.java')
-rw-r--r--configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/HttpListConfigsHandlerTest.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/HttpListConfigsHandlerTest.java b/configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/HttpListConfigsHandlerTest.java
index 7789c5d88db..e8484ad10fe 100644
--- a/configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/HttpListConfigsHandlerTest.java
+++ b/configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/HttpListConfigsHandlerTest.java
@@ -8,7 +8,6 @@ import com.yahoo.container.jdisc.HttpResponse;
import com.yahoo.vespa.config.ConfigKey;
import com.yahoo.vespa.config.server.TestComponentRegistry;
import com.yahoo.vespa.config.server.rpc.MockRequestHandler;
-import com.yahoo.vespa.config.server.tenant.TenantBuilder;
import com.yahoo.vespa.config.server.tenant.TenantRepository;
import com.yahoo.vespa.config.server.http.HandlerTest;
import com.yahoo.vespa.config.server.http.HttpErrorResponse;
@@ -46,9 +45,7 @@ public class HttpListConfigsHandlerTest {
}} );
TenantName tenantName = TenantName.from("mytenant");
TenantRepository tenantRepository = new TenantRepository(componentRegistry, false);
- TenantBuilder tenantBuilder = TenantBuilder.create(componentRegistry, tenantName)
- .withRequestHandler(mockRequestHandler);
- tenantRepository.addTenant(tenantBuilder);
+ tenantRepository.addTenant(tenantName, mockRequestHandler, mockRequestHandler);
handler = new HttpListConfigsHandler(HttpListConfigsHandler.testOnlyContext(),
tenantRepository,
Zone.defaultZone());