List of usage examples for org.aspectj.weaver.tools PointcutPrimitive CALL
PointcutPrimitive CALL
To view the source code for org.aspectj.weaver.tools PointcutPrimitive CALL.
Click Source Link
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()); } }