Example usage for org.aspectj.weaver.tools PointcutPrimitive CALL

List of usage examples for org.aspectj.weaver.tools PointcutPrimitive CALL

Introduction

In this page you can find the example usage for org.aspectj.weaver.tools PointcutPrimitive CALL.

Prototype

PointcutPrimitive CALL

To view the source code for org.aspectj.weaver.tools PointcutPrimitive CALL.

Click Source Link

Usage

From source file:org.springframework.aop.aspectj.AspectJExpressionPointcutTests.java

License:Apache License

@Test
public void testWithUnsupportedPointcutPrimitive() throws Exception {
    String expression = "call(int org.springframework.tests.sample.beans.TestBean.getAge())";

    try {//from w  w  w.  j a v  a 2  s .co m
        getPointcut(expression).getClassFilter(); // call to getClassFilter forces resolution...
        fail("Should not support call pointcuts");
    } catch (UnsupportedPointcutPrimitiveException ex) {
        assertEquals("Should not support call pointcut", PointcutPrimitive.CALL, ex.getUnsupportedPrimitive());
    }

}