use of com.yahoo.vespa.config.server.tenant.Tenants in project vespa by vespa-engine.
the class HttpGetConfigHandlerTest method setUp.
@Before
public void setUp() throws Exception {
mockRequestHandler = new MockRequestHandler();
mockRequestHandler.setAllConfigs(new HashSet<ConfigKey<?>>() {
{
add(new ConfigKey<>("bar", "myid", "foo"));
}
});
TestTenantBuilder tb = new TestTenantBuilder();
tb.createTenant(tenant).withRequestHandler(mockRequestHandler).build();
Tenants tenants = tb.createTenants();
handler = new HttpGetConfigHandler(HttpGetConfigHandler.testOnlyContext(), tenants);
}
Aggregations