Search in sources :

Example 1 with JerseyInjectionConfig

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"));
}
Also used : JerseyInjectionConfig(com.yahoo.container.di.config.JerseyInjectionConfig) Ignore(org.junit.Ignore) Test(org.junit.Test) DomBuilderTest(com.yahoo.config.model.builder.xml.test.DomBuilderTest)

Aggregations

DomBuilderTest (com.yahoo.config.model.builder.xml.test.DomBuilderTest)1 JerseyInjectionConfig (com.yahoo.container.di.config.JerseyInjectionConfig)1 Ignore (org.junit.Ignore)1 Test (org.junit.Test)1