Package org.jboss.test.microcontainer.support

Examples of org.jboss.test.microcontainer.support.SimpleBean.someMethod()


   private void checkInterceptedAndInjected(String name, SimpleBean dependency)
   {
      InterceptorWithAnnotationDependency.intercepted = null;
      SimpleBean bean = (SimpleBean) getBean(name);
      assertNotNull(bean);
      bean.someMethod();
      assertTrue(dependency + "==" + InterceptorWithAnnotationDependency.intercepted, dependency == InterceptorWithAnnotationDependency.intercepted);
   }  

   private void checkInterceptedAndInjectedMethodAnnotatedXml(SimpleBean dependency)
   {
View Full Code Here


   {
      SimpleBean bean = (SimpleBean) getBean("Intercepted");
      assertNotNull(bean);
      assertTrue(MarkerInterface.class.isAssignableFrom(bean.getClass()));
      InterceptorWithDependency.intercepted = null;
      bean.someMethod();
      assertTrue(dependency == InterceptorWithDependency.intercepted);
   }

   private void checkPlainBean()
   {
View Full Code Here

   {
      SimpleBean bean = (SimpleBean) getBean("Plain");
      assertNotNull(bean);
      assertFalse(MarkerInterface.class.isAssignableFrom(bean.getClass()));
      InterceptorWithDependency.intercepted = null;
      bean.someMethod();
      assertNull(InterceptorWithDependency.intercepted);
   }
   protected void configureLogging()
   {
      //enableTrace("org.jboss.kernel.plugins.dependency");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.