|
From: <jue...@we...> - 2004-04-30 06:01:47
|
IMO, there's a strong difference between the "mock" and the "test" tree: = The latter is a rough test suite for the framework itself, while the = former contains polished mock classes that are also useful for = applications, thus get distributed as "spring-mock.jar". The mocks would = even fit better in "src" than in "test" in that respect. =20 Actually, the "mock" tree is more similar to the main "src" tree than = the "test" tree in a number of respects: It's meant to be used by = applications, shipped as jar , included in the javadoc, and requires = higher coding standards than the framework test suite. I'm quite = strongly against keeping that sort of classes in the "test" tree. =20 Juergen =20 ________________________________ Von: spr...@li... im Auftrag = von Colin Sampaleanu Gesendet: Fr 30.04.2004 03:18 An: spr...@li... Betreff: Re: [Springframework-developer] Testing Controllers and = FormControllers Luke Taylor wrote: > Luke Taylor wrote: > >> >> It looks like the target/mock-classes directory needs to be created >> in build.xml to stop it falling over on a clean build. >> > > It was just that the mockjar target had "build" as a dependency rather > than "buildmock". I've changed it in CVS. > >> Not quite sure how I'm going to squeeze it into the Maven build = yet... >> > > I'm not sure I see the benefit of a separate "mock" tree in the main > directory rather than just storing them as support classes in the test > tree (since they're required by the test classes anyway). It would be > easy enough to build the separate jar of the org.springframework.mock > package from the compiled test classes. Actually that's a pretty valid point... ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3D3149&alloc_id=3D8166&op=3Dclick _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |