Package org.jboss.test.microcontainer.beans.support

Examples of org.jboss.test.microcontainer.beans.support.AccessBean


      return delegate;
   }

   protected void testAccessBean(String name) throws Throwable
   {
      AccessBean bean = getBean(name, AccessBean.class);
      AbstractTypeTestDelegate.Type type = getType(name);
      if (type == AbstractTypeTestDelegate.Type.PROXY)
      {
         assertNull(bean.getPriString());
         assertNull(bean.getProtString());
         assertNull(bean.getPubString());
      }
      else
      {
         assertEquals("foobar", concat(bean));
      }
View Full Code Here


         testAccessBean("private");
         testAccessBean("protected");
         testAccessBean("public");

         // this should fail or something :-) on proxy
         AccessBean pb = getBean("public", AccessBean.class);
         assertEquals("foobar", pb.pubString);
         AbstractTypeTestDelegate.Type type = getType("public");
         assertTrue(pb.getPubString() == null || type != AbstractTypeTestDelegate.Type.PROXY);
      }
      finally
      {
         resumeSecurity(sm);
      }
View Full Code Here

TOP

Related Classes of org.jboss.test.microcontainer.beans.support.AccessBean

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.