Package org.springframework.osgi.service.exporter.support

Examples of org.springframework.osgi.service.exporter.support.BeanNameServicePropertiesResolver


public class BeanNameServicePropertiesResolverTest extends TestCase {


  public void testAfterPropertiesSetNoBundleContext() throws Exception {
    try {
      new BeanNameServicePropertiesResolver().afterPropertiesSet();
      fail( "Should have thrown IllegalArgumentException");
    }
    catch (IllegalArgumentException ex) {
      // expected
    }
View Full Code Here


    bundleControl.setReturnValue(props);
   
    bundleContextControl.replay();
    bundleControl.replay();
   
    BeanNameServicePropertiesResolver resolver = new BeanNameServicePropertiesResolver();
    resolver.setBundleContext(mockContext);
    Map ret = resolver.getServiceProperties("myBean");
   
    bundleControl.verify();
    bundleContextControl.verify();
   
    assertEquals("3 properties",3,ret.size());
View Full Code Here

TOP

Related Classes of org.springframework.osgi.service.exporter.support.BeanNameServicePropertiesResolver

Copyright © 2018 www.massapicom. 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.