verify(mockAnnotation);
verify(mockSignature);
}
private static ProceedingJoinPoint createPjpMock(Signature mockSignature, int times) {
ProceedingJoinPoint mockPjp = createMock(ProceedingJoinPoint.class);
// XXX: the following two interactions are for logging, so they may happen
// 0 or n times, pending logging configuration
expect(mockPjp.getTarget()).andReturn("Target").times(0, times);
expect(mockPjp.getSignature()).andReturn(mockSignature).times(0, times);
return mockPjp;
}