User Tools

Site Tools


tracing:ex1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tracing:ex1 [2008/10/07 16:46]
bdefrain
tracing:ex1 [2021/02/05 13:55]
Line 1: Line 1:
-====== Tracing: Simple output ====== 
- 
-**Task:** Pass the suite ''tests.SimpleTraceOutput''. 
- 
-Write an aspect to log the execution of all public methods in the ''figures'' package. Write a message into the log panel with the static ''write(String)'' method from the ''Log'' class. This message should be the exact string representation of the join point, as obtained through ''thisJoinPoint.toString()''. 
- 
-<note tip> 
-Besides ''thisJoinPoint.toString'', use primitive pointcut designators ''execution'' (and optionally ''within''). 
-</note> 
- 
-<note> 
-You might remember ''thisJointPoint'' from [[basics:ex2|The Basics: Exercise 2]]. 
-</note> 
- 
-With your aspect you should be able to pass the tests of suite ''tests.SimpleTraceOutput''. 
- 
----- 
- 
-After you have completed the exercise, remove your aspect from the build path; then continue with [[tracing:ex2|Exercise 2]]. 
  
tracing/ex1.txt ยท Last modified: 2021/02/05 13:55 (external edit)