Examples of doSomething()


Examples of org.jboss.test.jmx.compliance.server.support.Broadcaster.doSomething()

      // Add the listener
      MyNotificationListener listener = new MyNotificationListener();
      server.addNotificationListener(broadcasterName, listener, null, null);

      // Test we get a notification
      broadcaster.doSomething();
      assertEquals(1, listener.result);

      // Remove the broadcaster
      server.unregisterMBean(broadcasterName);
     
View Full Code Here

Examples of org.jboss.test.proxyfactory.support.Simple.doSomething()

   public void testSimple() throws Exception
   {
      SimpleBean bean = new SimpleBean();
      Simple simple = (Simple) assertCreateProxy(bean, Simple.class);
      SimpleInterceptor.invoked = null;
      simple.doSomething();
      assertTrue(bean.invoked);
      Method invoked = SimpleInterceptor.invoked;
      assertNotNull(invoked);
      assertEquals("doSomething", invoked.getName());
   }
View Full Code Here

Examples of org.jboss.test.proxyfactory.support.Simple.doSomething()

      for (int i = 0; i < iterations; ++i)
      {
         SimpleBean bean = new SimpleBean();
         InvocationHandler ih = new MyInvocationHandler(bean);
         Simple simple = (Simple) Proxy.newProxyInstance(cl, interfaces, ih);
         simple.doSomething();
      }
   }
  
   public void testStressProxyFactory() throws Exception
   {
View Full Code Here

Examples of org.jboss.test.proxyfactory.support.Simple.doSomething()

   {
      for (int i = 0; i < iterations; ++i)
      {
         SimpleBean bean = new SimpleBean();
         Simple simple = (Simple) createProxy(bean);
         simple.doSomething();
      }
   }
  
   public static Test suite()
   {
View Full Code Here

Examples of org.jboss.test.proxyfactory.support.Simple.doSomething()

      simple1.doSomething();
      assertTrue(bean1.invoked);
      Object instance1 = InstanceInterceptor.last;
      assertNotNull(instance1);
      InstanceInterceptor.last = null;
      simple2.doSomething();
      assertTrue(bean2.invoked);
      Object instance2 = InstanceInterceptor.last;
      assertNotNull(instance2);
      assertFalse(instance1 == instance2);
   }
View Full Code Here

Examples of org.jboss.test.proxyfactory.support.Simple.doSomething()

{
   public void testHollow() throws Exception
   {
      Simple simple = (Simple) assertCreateHollowProxy(new Class[] { Simple.class }, null, Simple.class);
      ReturningInterceptor.invoked = null;
      simple.doSomething();

      Method method = ReturningInterceptor.invoked;
      assertNotNull(method);
      assertEquals("doSomething", method.getName());
   }
View Full Code Here

Examples of org.jboss.test.proxyfactory.support.Simple.doSomething()

            mixins,
            null,
            new Class[] {Other.class, Simple.class, Tagging.class, Another.class});

      Simple simple = (Simple)proxy;
      simple.doSomething();
      assertTrue(SimpleMixin.invoked);
      assertNotNull(SimpleInterceptor.invoked);
      assertEquals("doSomething", SimpleInterceptor.invoked.getName());
      assertNull(ReturningInterceptor.invoked);
      assertFalse(AnotherMixin.invoked);
View Full Code Here

Examples of org.jboss.test.proxyfactory.support.Simple.doSomething()

   public void testObject() throws Exception
   {
      Simple simple = (Simple) assertCreateProxy(new Object(), new Class[] { Simple.class }, Simple.class);
      simple.toString();
      ReturningInterceptor.invoked = null;
      simple.doSomething();
      Method method = ReturningInterceptor.invoked;
      assertNotNull(method);
      assertEquals("doSomething", method.getName());
   }
  
View Full Code Here

Examples of org.jboss.test.proxyfactory.support.Simple.doSomething()

   public void testField() throws Exception
   {
      SimpleBean bean = new SimpleBean();
      Simple simple = (Simple) assertCreateProxy(bean, Simple.class);
      SimpleInterceptor.invoked = null;
      simple.doSomething();
      assertTrue(bean.invoked);
      Method invoked = SimpleInterceptor.invoked;
      assertNotNull(invoked);
      assertEquals("doSomething", invoked.getName());
     
View Full Code Here

Examples of org.jboss.test.proxyfactory.support.Simple.doSomething()

      PlainBean bean = new PlainBean();
      AOPProxyFactoryMixin[] mixins = {new AOPProxyFactoryMixin(SimpleMixin.class, new Class[]{Simple.class})};
      Object proxy = assertCreateProxy(bean, mixins, Simple.class);

      Simple simple = (Simple)proxy;
      simple.doSomething();
      assertTrue(SimpleMixin.invoked);
      assertNotNull(SimpleInterceptor.invoked);
      assertEquals("doSomething", SimpleInterceptor.invoked.getName());
   }
  
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.