use of com.yahoo.vespa.config.server.tenant.TenantBuilder in project vespa by vespa-engine.
the class TestTenantBuilder method createTenant.
public TenantBuilder createTenant(TenantName tenantName) {
MemoryTenantApplications applicationRepo = new MemoryTenantApplications();
TenantBuilder builder = TenantBuilder.create(componentRegistry, tenantName).withSessionFactory(new SessionCreateHandlerTest.MockSessionFactory()).withLocalSessionRepo(new LocalSessionRepo(componentRegistry.getClock())).withRemoteSessionRepo(new RemoteSessionRepo(tenantName)).withApplicationRepo(applicationRepo);
tenantMap.put(tenantName, builder);
return builder;
}
Aggregations