Package org.aspectj.lang

Examples of org.aspectj.lang.JoinPoint.toShortString()


     
      public void before(Method method, Object[] args, Object target) throws Throwable {
        JoinPoint jp = AbstractAspectJAdvice.currentJoinPoint();
        assertTrue("Method named in toString", jp.toString().indexOf(method.getName()) != -1);
        // Ensure that these don't cause problems
        jp.toShortString();
        jp.toLongString();
       
        assertSame(target, AbstractAspectJAdvice.currentJoinPoint().getTarget());
        assertFalse(AopUtils.isAopProxy(AbstractAspectJAdvice.currentJoinPoint().getTarget()));
       
View Full Code Here


      @Override
      public void before(Method method, Object[] args, Object target) throws Throwable {
        JoinPoint jp = AbstractAspectJAdvice.currentJoinPoint();
        assertTrue("Method named in toString", jp.toString().contains(method.getName()));
        // Ensure that these don't cause problems
        jp.toShortString();
        jp.toLongString();

        assertSame(target, AbstractAspectJAdvice.currentJoinPoint().getTarget());
        assertFalse(AopUtils.isAopProxy(AbstractAspectJAdvice.currentJoinPoint().getTarget()));
View Full Code Here

        assertEquals(aspectJVersionJp.getSignature().toLongString(), jp.getSignature().toLongString());
        assertEquals(aspectJVersionJp.getSignature().toShortString(), jp.getSignature().toShortString());
        assertEquals(aspectJVersionJp.getSignature().toString(), jp.getSignature().toString());

        assertEquals(aspectJVersionJp.toLongString(), jp.toLongString());
        assertEquals(aspectJVersionJp.toShortString(), jp.toShortString());
        assertEquals(aspectJVersionJp.toString(), jp.toString());
      }
    });
    ITestBean itb = (ITestBean) pf.getProxy();
    itb.getAge();
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.