Examples of LazyFederatedServiceCollectionImpl


Examples of org.onebusaway.federations.impl.LazyFederatedServiceCollectionImpl

    secondProviderAgenciesAndCoverage.put("b2", Arrays.asList(new CoordinateBounds(5, 2, 7, 4)));
   
    Mockito.when(serviceA.getAgencyIdsWithCoverageArea()).thenReturn(firstProviderAgenciesAndCoverage);
    Mockito.when(serviceB.getAgencyIdsWithCoverageArea()).thenReturn(secondProviderAgenciesAndCoverage);
   
    LazyFederatedServiceCollectionImpl collection = new LazyFederatedServiceCollectionImpl();
    collection.setServiceInterface(SimpleFederatedService.class);
    collection.setServiceProviders(Arrays.asList(serviceA,serviceB));

    FederatedServiceFactoryBean factory = new FederatedServiceFactoryBean();
    factory.setCollection(collection);
    factory.setServiceInterface(SimpleFederatedService.class);
    factory.afterPropertiesSet();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.