Claude,

The DebugRequest, DebugResponse and DebugQuery classes were made to do
exactly this sort of thing.

You setup a (static) main within the tag class as you would during normal
test development.  Create instances of a DebugRequest, DebugResponse and, if
necessary, a DebugQuery.
The DebugRequest constructs with a Hashtable whose contents will become the
tag attributes and the DebugQuery class constructs with arrays for the
column and row data.

Then you instantiate your tag class and pass the debug instances to the
processRequest and your tag functions exactly as if it were called by the
Server.

(These things are covered in much greater detail in all the links I sent you
earlier in this thread.)

Using the debug classes will provide for you the exact same environment that
the Server provides - it was the whole point of making them.

rish


> -----Original Message-----
> From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, September 18, 2005 4:25 PM
> To: CF-Talk
> Subject: Re: Developing a CFX tag in Java
> 
>  >>Have you considered creating a main in your tag and using 
> the DebugRequest and DebugResponse classes to test your tag?
> 
> How can this work? A CFX is supposed to be called by CF, get 
> its parameters from attributes from CF, and the results sent 
> to CF via a query created in CF.
> If I run the tag from another main (), what can I test?
> 
> --
> _______________________________________
> REUSE CODE! Use custom tags;
> See http://www.contentbox.com/claude/customtags/tagstore.cfm
> (Please send any spam to this address: 
> [EMAIL PROTECTED]) Thanks.
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218571
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to