}
// ============ pointcut type tests =============
public void testPointcutTypes() throws Exception {
MethodInfo method = JavaMethodInfo.getMethodInfo(Target.class.getDeclaredMethod("modifiers1", new Class[] {}));
FieldInfo field = JavaFieldInfo.getFieldInfo(Target.class.getDeclaredField("modifier1"));
assertTrue(new ExpressionInfo("execution(void test.expression.Target.modifiers1())", NAMESPACE).getExpression()
.match(new ExpressionContext(PointcutType.EXECUTION, method, null)));
assertFalse(new ExpressionInfo("execution(void test.expression.Target.modifiers1())", NAMESPACE)
.getExpression().match(new ExpressionContext(PointcutType.CALL, method, null)));
assertTrue(new ExpressionInfo("set(int test.expression.Target.modifier1)", NAMESPACE).getExpression().match(