Code example for XmlBeanFactory

Methods: getBean

0
        assertEquals("not the correct class", "org.springframework.data.jdbc.support.oracle.ProxyDataSource", bean.getClass().getName());
    } 
 
    public void testUsernameProxyDataSourceDefinitionWithoutContext() throws Exception {
        try { 
            this.beanFactory.getBean("proxyDataSourceWithoutContext");
            fail("Instantiation without ConnectionContextProvider should fail");
        } 
        catch (BeanCreationException bce) {
            assertTrue(true);            
        } 
    } 
 
    public void testUsernamePasswordProxyDataSourceDefinition() throws Exception {
        Object bean = this.beanFactory.getBean("proxyWithPasswordDataSource");
        assertEquals("not the correct class", "org.springframework.data.jdbc.support.oracle.ProxyDataSource", bean.getClass().getName());
    } 
 
    public void testRacFailoverInterceptor() throws Exception {
        this.beanFactory.getBean("racFailoverInterceptor");
Contextual code suggestions in your IDE  Get Codota for Java