Package org.springframework.web.issues.SimpleBean

Examples of org.springframework.web.issues.SimpleBean.MyBeanClass


    wac.refresh();
   
    ServletWebRequest webRequest = new ServletWebRequest(new MockHttpServletRequest());
    RequestContextHolder.setRequestAttributes(webRequest);
   
    MyBeanClass myBeanClass = wac.getBean("myBeanClass", MyBeanClass.class);
    assertNull(myBeanClass);
   
    MyBeanClass myProxiedBeanClass = wac.getBean("myProxiedBeanClass", MyBeanClass.class);
    assertNotNull(myProxiedBeanClass);
    assertEquals("foo", myProxiedBeanClass.getFoo())// this will cause NPE

    RequestContextHolder.resetRequestAttributes();
  }
View Full Code Here

TOP

Related Classes of org.springframework.web.issues.SimpleBean.MyBeanClass

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.