use of io.fabric8.runtime.container.ContainerConfigurationBuilder in project fabric8 by jboss-fuse.
the class ManagedContainerTest method testContainerLifecycle.
@Test
public void testContainerLifecycle() throws Exception {
ContainerConfigurationBuilder builder = ContainerConfigurationBuilder.create();
ContainerConfiguration configuration = builder.setTargetDirectory("target/managed-container").getConfiguration();
ManagedContainer<?> container = ManagedContainer.Factory.create(configuration);
Assert.assertNotNull("ManagedContainer not null", container);
try {
Assert.assertNotNull("Container home not null", container.getContainerHome());
container.start();
} finally {
container.destroy();
}
}
Aggregations