|
From: Vincent M. <vm...@oc...> - 2001-08-22 09:10:30
|
----- Original Message ----- From: "Steve Freeman" <st...@ok...> To: <moc...@li...> Sent: Wednesday, August 22, 2001 9:54 AM Subject: Re: [Mockobjects-java-dev] AOP : Aspect Oriented Programming > > Vincent Massol <vm...@oc...> said: > > > of course, the real problem is that it changes the code under test, so it's not totally reliable for that. > > > > why do you say that ? That's the beauty of it, it doesn't change the code at all ... I'll post an example soon .. > > It doesn't change the visible code, but it must change something on the way to the byte code or there'd be no point in having it. oh, yes it changes the bytecode ... but not the sources ... meaning that in Ant for example, you run one target for unit testing and another one for deploying without testing (or you can even leave testing on, which is also great because the tests are then also exercised on the user's machine and sometimes you'll find that your test was not machine independent or the like). -Vincent |