-3

As my java application increases in complexity i want to write audit methods to make sure that i am doing the right thing.

How can i do it in java? thx

Lahniep
  • 719
  • 1
  • 11
  • 30

2 Answers2

2

he probably means unit tests

check this to get started: http://junit.sourceforge.net/

Stefan Ernst
  • 2,781
  • 4
  • 25
  • 34
0

Or perhaps using AspectJ to audit certain method calls?

You can make pointcuts which are like filters and catch when certain methods are called and get information about the parameters. This could be good for auditing.

Aspect J

Egg
  • 246
  • 1
  • 5
  • 16