Examples of someMethod()


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

      assertNotNull(dependency3);

      InterceptorWithAnnotationDependency.intercepted = null;
      SimpleBean bean = (SimpleBean) getBean(name);
      assertNotNull(bean);
      bean.someMethod();
      assertNotNull(InterceptorWithNestedAnnotationDependency.intercepted1);
      assertTrue(dependency1 == InterceptorWithNestedAnnotationDependency.intercepted1);
      assertNotNull(InterceptorWithNestedAnnotationDependency.intercepted2);
      assertTrue(dependency2 == InterceptorWithNestedAnnotationDependency.intercepted2);
      assertNotNull(InterceptorWithNestedAnnotationDependency.intercepted3);
View Full Code Here

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);
   }  

   private void checkNotInstalledAndNotDescribed(String name)
   {
View Full Code Here

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

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

   {
      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

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

   {
      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

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

            try
            {
               SimpleBeanImpl bean = (SimpleBeanImpl)getBean("Intercepted");
               SimpleInterceptor1.invoked = false;
               SimpleInterceptor2.invoked = false;
               bean.someMethod();
               assertTrue(SimpleInterceptor1.invoked);
               assertTrue(SimpleInterceptor2.invoked);

               ControllerContext ctx = getControllerContext("Intercepted");
               Controller controller = ctx.getController();
View Full Code Here

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

               controller.change(ctx, ControllerState.INSTALLED);
              
               bean = (SimpleBeanImpl)getBean("Intercepted");
               SimpleInterceptor1.invoked = false;
               SimpleInterceptor2.invoked = false;
               bean.someMethod();
               assertTrue(SimpleInterceptor1.invoked);
               assertFalse(SimpleInterceptor2.invoked);
            }
            finally
            {
View Full Code Here

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

   {
      SimpleBeanImpl bean = (SimpleBeanImpl) getBean("Intercepted");
      assertFalse(TestAspect.fooCalled);
      assertFalse(TestAspect.barCalled);

      bean.someMethod();
      assertTrue("TestAspect.foo not called", TestAspect.fooCalled);
      assertFalse("TestAspect.bar was called", TestAspect.barCalled);
     
      TestAspect.fooCalled = false;
      assertFalse(TestAspect.fooCalled);
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.