Search in sources :

Example 6 with ComponentsConfig

use of com.yahoo.container.ComponentsConfig in project vespa by vespa-engine.

the class RestApiTest method jersey_handler_is_included_in_components_config.

@Test
public void jersey_handler_is_included_in_components_config() throws Exception {
    setup();
    ComponentsConfig config = root.getConfig(ComponentsConfig.class, ClusterId);
    assertThat(config.toString(), containsString(".id \"" + HandlerId + "\""));
}
Also used : ComponentsConfig(com.yahoo.container.ComponentsConfig) Test(org.junit.Test) DomBuilderTest(com.yahoo.config.model.builder.xml.test.DomBuilderTest)

Example 7 with ComponentsConfig

use of com.yahoo.container.ComponentsConfig in project vespa by vespa-engine.

the class MultipleRestApisTest method jersey_handler_for_each_rest_api_is_included_in_components_config.

@Test
public void jersey_handler_for_each_rest_api_is_included_in_components_config() {
    ComponentsConfig config = root.getConfig(ComponentsConfig.class, CLUSTER_ID);
    assertThat(config.toString(), containsString(".id \"" + HANDLER_ID_1 + "\""));
    assertThat(config.toString(), containsString(".id \"" + HANDLER_ID_2 + "\""));
}
Also used : ComponentsConfig(com.yahoo.container.ComponentsConfig) Test(org.junit.Test) DomBuilderTest(com.yahoo.config.model.builder.xml.test.DomBuilderTest)

Aggregations

ComponentsConfig (com.yahoo.container.ComponentsConfig)7 DomBuilderTest (com.yahoo.config.model.builder.xml.test.DomBuilderTest)6 Test (org.junit.Test)6 ComponentId (com.yahoo.component.ComponentId)1 DocprocConfig (com.yahoo.config.docproc.DocprocConfig)1 SchemamappingConfig (com.yahoo.config.docproc.SchemamappingConfig)1 BundlesConfig (com.yahoo.container.BundlesConfig)1 JerseyInitConfig (com.yahoo.container.config.jersey.JerseyInitConfig)1 ChainsConfig (com.yahoo.container.core.ChainsConfig)1 JerseyBundlesConfig (com.yahoo.container.di.config.JerseyBundlesConfig)1 JerseyInjectionConfig (com.yahoo.container.di.config.JerseyInjectionConfig)1 ContainerMbusConfig (com.yahoo.container.jdisc.ContainerMbusConfig)1 JdiscBindingsConfig (com.yahoo.container.jdisc.JdiscBindingsConfig)1 BindingsOverviewHandler (com.yahoo.container.usability.BindingsOverviewHandler)1 DocumentmanagerConfig (com.yahoo.document.config.DocumentmanagerConfig)1 QrStartConfig (com.yahoo.search.config.QrStartConfig)1 ContainerModel (com.yahoo.vespa.model.container.ContainerModel)1 Component (com.yahoo.vespa.model.container.component.Component)1 Handler (com.yahoo.vespa.model.container.component.Handler)1 JerseyHandler (com.yahoo.vespa.model.container.jersey.JerseyHandler)1