Package org.jboss.test.proxyfactory.support

Examples of org.jboss.test.proxyfactory.support.Simple


*/
public class HollowTestCase extends AbstractProxyTest
{
   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


            new Class[] {Other.class, Tagging.class},
            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

*/
public class ObjectTestCase extends AbstractProxyTest
{
   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

public class FieldTestCase extends AbstractProxyTest
{
   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

TOP

Related Classes of org.jboss.test.proxyfactory.support.Simple

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.