use of com.yahoo.jdisc.application.DeactivatedContainer in project vespa by vespa-engine.
the class ContainerTerminationTestCase method requireThatAppContextIsFromBuilder.
@Test
public void requireThatAppContextIsFromBuilder() {
TestDriver driver = TestDriver.newSimpleApplicationInstanceWithoutOsgi();
ContainerBuilder builder = driver.newContainerBuilder();
Object obj = new Object();
builder.setAppContext(obj);
driver.activateContainer(builder);
DeactivatedContainer container = driver.activateContainer(null);
assertSame(obj, container.appContext());
assertTrue(driver.close());
}
Aggregations