super(name);
}
// ============ constructor signature test =============
public void testConstructor() throws Exception {
assertTrue(new ExpressionInfo("call(test.expression.Target.new())", NAMESPACE).getExpression().match(
new ExpressionContext(PointcutType.CALL, constructor, null)));
assertFalse(new ExpressionInfo("call(test.expression.Target.new(String))", NAMESPACE).getExpression().match(
new ExpressionContext(PointcutType.CALL, constructor, null)));
//AW-112 below
assertTrue(new ExpressionInfo("within(test.expression.Target) && execution(new())", NAMESPACE).getExpression().match(
new ExpressionContext(PointcutType.EXECUTION, constructor, null)));
assertTrue(new ExpressionInfo("within(test..*) && execution(*.expression.Target.new())", NAMESPACE).getExpression().match(
new ExpressionContext(PointcutType.EXECUTION, constructor, constructor.getDeclaringType())));
assertTrue(new ExpressionInfo("within(test..*.*) && execution(*.expression.Target.new())", NAMESPACE).getExpression().match(
new ExpressionContext(PointcutType.EXECUTION, constructor, constructor.getDeclaringType())));
}