I have a component whose init method takes the path to an xml file and
parses the contents of that xml file into an internal data structure.  Now I
am trying to write the unit test for this function and I am getting stuck.
My original attempt was to pass in a test xml file and the manually create
the matching data structure and compare the two.  The problem is, during the
parsing of this xml file, the component creates and inserts several UUID
values into the internal data structure.  Obviously, I cannot magically
generate the same UUID value when I manually create the matching data
structure to compare against.

 

So, does anybody have any suggestions on testing this type of functionality?

 

Thanks.




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284643
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to