"execution(void test.expression.Target.parameters1(..)) && args(.., int)",
NAMESPACE).getExpression().match(new ExpressionContext(PointcutType.CALL, parameters1, null)));
}
public void testMethodArgs2() throws Exception {
assertTrue(new ExpressionInfo("call(void test.expression.Target.parameters2(..)) && args(..)", NAMESPACE)
.getExpression().match(new ExpressionContext(PointcutType.CALL, parameters2, null)));
assertFalse(new ExpressionInfo("call(void test.expression.Target.parameters2(..)) && args()", NAMESPACE)
.getExpression().match(new ExpressionContext(PointcutType.CALL, parameters2, null)));
assertFalse(new ExpressionInfo("call(void test.expression.Target.parameters2(..)) && args(int)", NAMESPACE)
.getExpression().match(new ExpressionContext(PointcutType.CALL, parameters2, null)));
assertTrue(new ExpressionInfo(
"call(void test.expression.Target.parameters2(..)) && args(int, float, byte)",
NAMESPACE).getExpression().match(new ExpressionContext(PointcutType.CALL, parameters2, null)));
assertTrue(new ExpressionInfo(
"call(void test.expression.Target.parameters2(..)) && args(.., float, byte)",
NAMESPACE).getExpression().match(new ExpressionContext(PointcutType.CALL, parameters2, null)));
assertTrue(new ExpressionInfo("call(void test.expression.Target.parameters2(..)) && args(.., byte)", NAMESPACE)
.getExpression().match(new ExpressionContext(PointcutType.CALL, parameters2, null)));
assertTrue(new ExpressionInfo(
"call(void test.expression.Target.parameters2(..)) && args(int, float, ..)",
NAMESPACE).getExpression().match(new ExpressionContext(PointcutType.CALL, parameters2, null)));
assertTrue(new ExpressionInfo("call(void test.expression.Target.parameters2(..)) && args(int, ..)", NAMESPACE)
.getExpression().match(new ExpressionContext(PointcutType.CALL, parameters2, null)));
assertFalse(new ExpressionInfo(
"call(void test.expression.Target.parameters2(..)) && args(WRONG, ..)",
NAMESPACE).getExpression().match(new ExpressionContext(PointcutType.CALL, parameters2, null)));
assertFalse(new ExpressionInfo(
"call(void test.expression.Target.parameters2(..)) && args(.., WRONG)",
NAMESPACE).getExpression().match(new ExpressionContext(PointcutType.CALL, parameters2, null)));
assertFalse(new ExpressionInfo(
"call(void test.expression.Target.parameters2(..)) && args(int, float, WRONG)",
NAMESPACE).getExpression().match(new ExpressionContext(PointcutType.CALL, parameters2, null)));
assertFalse(new ExpressionInfo(
"call(void test.expression.Target.parameters2(..)) && args(int, float, byte, WRONG)",
NAMESPACE).getExpression().match(new ExpressionContext(PointcutType.CALL, parameters2, null)));
}