use of com.yahoo.container.di.config.JerseyInjectionConfig in project vespa by vespa-engine.
the class RestApiTest method jdisc_components_can_be_injected.
// TODO: use for naming components instead
@Ignore
@Test
public void jdisc_components_can_be_injected() throws Exception {
setup();
JerseyInjectionConfig config = root.getConfig(JerseyInjectionConfig.class, context.getConfigId());
assertThat(config.inject(0).instance(), is("injectedHandler"));
assertThat(config.inject(0).forClass(), is("com.yahoo.handler.Handler"));
}
Aggregations