use of com.yahoo.search.federation.sourceref.SearchChainInvocationSpec in project vespa by vespa-engine.
the class SearchChainResolverTestCase method lookup_source.
@Test
public void lookup_source() throws Exception {
SearchChainInvocationSpec res = resolve(sourceId.getName());
assertIsSourceInProvider(res);
}
use of com.yahoo.search.federation.sourceref.SearchChainInvocationSpec in project vespa by vespa-engine.
the class SearchChainResolverTestCase method lookup_source_search_chain_directly.
@Test
public void lookup_source_search_chain_directly() throws Exception {
SearchChainInvocationSpec res = resolve(sourceChainInProviderId.stringValue());
assertIsSourceInProvider(res);
}
use of com.yahoo.search.federation.sourceref.SearchChainInvocationSpec in project vespa by vespa-engine.
the class SearchChainResolverTestCase method resolve.
private SearchChainInvocationSpec resolve(String sourceSpecification, Properties sourceToProviderMap) throws UnresolvedSearchChainException {
SearchChainInvocationSpec res = searchChainResolver.resolve(ComponentSpecification.fromString(sourceSpecification), sourceToProviderMap);
assertThat(res.federationOptions, is(federationOptions));
return res;
}
Aggregations