use of com.yahoo.vespa.config.server.application.MemoryTenantApplications in project vespa by vespa-engine.
the class TenantTest method close.
@Test
public void close() {
MemoryTenantApplications repo = (MemoryTenantApplications) t1.getApplicationRepo();
assertTrue(repo.isOpen());
t1.close();
assertFalse(repo.isOpen());
}
use of com.yahoo.vespa.config.server.application.MemoryTenantApplications in project vespa by vespa-engine.
the class SessionActiveHandlerTest method setup.
@Before
public void setup() throws Exception {
remoteSessionRepo = new RemoteSessionRepo(tenant);
applicationRepo = new MemoryTenantApplications();
curator = new MockCurator();
configCurator = ConfigCurator.create(curator);
localRepo = new LocalSessionRepo(Clock.systemUTC());
pathPrefix = "/application/v2/tenant/" + tenant + "/session/";
hostProvisioner = new MockProvisioner();
modelFactory = new VespaModelFactory(new NullConfigModelRegistry());
componentRegistry = new TestComponentRegistry.Builder().curator(curator).configCurator(configCurator).modelFactoryRegistry(new ModelFactoryRegistry(Collections.singletonList(modelFactory))).build();
}
Aggregations