use of com.yahoo.container.bundle.BundleInstantiationSpecification in project vespa by vespa-engine.
the class DomSearcherBuilderTest method ensureCorrectModel.
@Test
public void ensureCorrectModel() {
ChainedComponent<ChainedComponentModel> searcher = new DomSearcherBuilder().doBuild(root, parse("<searcher id='theId' class='theclassid' bundle='thebundle' provides='p1'>", " <provides>p2</provides>", "</searcher>"));
ChainedComponentModel model = searcher.model;
assertEquals(2, model.dependencies.provides().size());
BundleInstantiationSpecification instantiationSpecification = model.bundleInstantiationSpec;
assertEquals("theId", instantiationSpecification.id.stringValue());
assertEquals("theclassid", instantiationSpecification.classId.stringValue());
assertEquals("thebundle", instantiationSpecification.bundle.stringValue());
}
Aggregations