[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[aspectj-users] Unit testing methods that take JoinPoint as an argument
|
- From: Jeffrey Sinclair <jeff@xxxxxxxxxxxxxx>
- Date: Thu, 31 May 2007 22:19:04 +0100
- Delivered-to: aspectj-users@eclipse.org
- Thread-index: AcejyVCjj0gAdg+8Edy6lAANk8XuLA==
- Thread-topic: Unit testing methods that take JoinPoint as an argument
- User-agent: Microsoft-Entourage/11.3.3.061214
aspectj-users,
What mechanisms do people use to unit test methods that take a JoinPoint as
an argument?
Take a simple method call tracing aspect that delegates the actual writing
of the trace to some writer. The writer might have an API such as:
public void methodEntry(JoinPoint jp);
How do people go about testing such a method?
Regards,
Jeff