Package org.impalaframework.spring.service.exporter.NamedServiceAutoExportPostProcessor

Examples of org.impalaframework.spring.service.exporter.NamedServiceAutoExportPostProcessor.BeanFactoryCallback


        verify(endPoint);
        verify(factoryBean);
    }

    public void testProcessBeanFactory() throws Exception {
        final BeanFactoryCallback callback = createMock(BeanFactoryCallback.class);
        final BeanDefinition beanDefinition1 = createMock(BeanDefinition.class);
        final BeanDefinition beanDefinition2 = createMock(BeanDefinition.class);
        final Object bean1 = new Object();
       
        expect(beanFactory.getBeanDefinitionNames()).andReturn(new String[]{"bean1","bean2"});
        expect(beanFactory.getBeanDefinition("bean1")).andReturn(beanDefinition1);
        expect(beanDefinition1.isAbstract()).andReturn(false);
        expect(beanFactory.getBean("bean1")).andReturn(bean1);
        callback.doWithBean("bean1", bean1);
       
        expect(beanFactory.getBeanDefinition("bean2")).andReturn(beanDefinition2);
        expect(beanDefinition2.isAbstract()).andReturn(true);
       
        replay(beanDefinition1);
View Full Code Here

TOP

Related Classes of org.impalaframework.spring.service.exporter.NamedServiceAutoExportPostProcessor.BeanFactoryCallback

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.