very cool, I'll check that out and see if I can get some real jsp unit tests working.
On Tue, 17 Jun 2003, Simon Brown wrote: > Yes, Cactus is fairly complicated and for testing > custom tags isn't (IMHO) very good because you have to > manually write the code that the JSP container usually > generates to manage the tag lifecycle. With TagUnit, > you just point it to your tag library and write > assertions using JSP tags. For example, you might test > a tag that generates "Hello world!" as follows: > > <tagunit:assertEquals> > <tagunit:expectedContent>Hello > world!</tagunit:expectedContent> > > <tagunit:actualContent><myTag:helloWorld/></tagunit:actualContent> > </tagunit:assertEquals> > > I've basically implemented some of the JUnit > assertions as custom tags, allowing tags to be tested > inside the container and tested in the same way that > they will eventually be used - i.e. via a JSP. > > Check out www.tagunit.org for more info. > > Simon > p.s. I'm working on the docs for version 1.0 ;-) > > --- John York <[EMAIL PROTECTED]> wrote: > oh sorry, > I just used junit for some simple tests. I > > had started looking > > at jakarta cactus, but haven't had time to get it > > working yet. Cactus > > seems a bit complicated, is tagunit much easier to > > use? > > > > > > On Tue, 17 Jun 2003, Simon Brown wrote: > > > > > John, did you use a framework for this or just put > > > together some testing code with JUnit/JSP/etc? > > > > > > Simon > > > --- John York <[EMAIL PROTECTED]> wrote: > I've > > > written a handful of unit tests to test sorting > > > > and paging within my > > > > tag. I'm sure they would generalize to test any > > > > refactored version of this > > > > tag. > > > > > > > > > > > > On Tue, 17 Jun 2003, Matt Raible wrote: > > > > > > > > > We might want to use tagunit > > (http://tagunit.org) > > > > and canoo's webtest to > > > > > test the JSPs (http://webtest.canoo.com). > > > > > > > > > > I know that Simon Brown (TagUnit's author) had > > > > already done some work on > > > > > the displaytag, so that might be a good start. > > > > > > > > > > Matt > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > [mailto:[EMAIL PROTECTED] > > > > On Behalf Of > > > > > Benjamin Simpson > > > > > Sent: Tuesday, June 17, 2003 6:35 AM > > > > > To: [EMAIL PROTECTED] > > > > > Subject: [displaytag-devel] display unit tests > > > > > > > > > > > > > > > How are we shaping up for documentation and > > jUnit > > > > tests? Do we want to > > > > > stick with the displaytag website the way it > > is? > > > > > > > > > > I am going to be coming into some free time > > (no, > > > > not unemployment .. I > > > > > think). I would enjoy contributing something > > that > > > > reflects well on our > > > > > group. > > > > > > > > > > As for unit tests, I have code that I was > > using to > > > > test my refactorings > > > > > that was using zip codes (for scale) and > > baseball > > > > stats for accuracy. > > > > > It would be great if we could get together a > > > > harness of some type (Sun's > > > > > suggestion at JavaOne) so that we could > > monitor > > > > the impact of the > > > > > refactorings and changes we make to Ed's > > original > > > > tag. > > > > > > > > > > Would anyone like to discuss this? I am > > willing > > > > to do the work. > > > > > > > > > > Ben > > > > > > > > > > > > > > > > > > -- > > > > John York > > > > Software Engineer > > > > CareerSite Corporation > > > > > > > > > > > > > ________________________________________________________________________ > > > Want to chat instantly with your online friends? > > Get the FREE Yahoo! > > > Messenger http://uk.messenger.yahoo.com/ > > > > > > > -- > > John York > > Software Engineer > > CareerSite Corporation > > > > ________________________________________________________________________ > Want to chat instantly with your online friends? Get the FREE Yahoo! > Messenger http://uk.messenger.yahoo.com/ > -- John York Software Engineer CareerSite Corporation ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ displaytag-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-devel