IndomitoGallo / semanticturkey

Automatically exported from code.google.com/p/semanticturkey
0 stars 0 forks source link

Assert methods for UNIT TESTING inspecting the content of a reply #64

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I've created a few methods in the XMLHelp class of the core framework to 
support inspecting an XML element's content (see their use in the importTest 
methods inside Metadata_UT).
I could write other Assert methods reusing these methods from XMLHelp, but 
expressly thought for asserting on the base of the content of XMLResponses 
(taking care of casting the response to a ReplyResponse, throwing
exceptions in case it is not a reply, and directly accessing and inspecting the 
data element).

Original issue reported on code.google.com by stellat...@gmail.com on 25 Nov 2011 at 4:11

GoogleCodeExporter commented 8 years ago

Original comment by stell...@info.uniroma2.it on 25 Nov 2011 at 4:13

GoogleCodeExporter commented 8 years ago
maybe adding support for Xpath expression would generalize and at the same time 
ease the task for cases where we need to access an element which is deeply 
nested inside some XML structure under the data element of the response

Original comment by stell...@info.uniroma2.it on 25 Nov 2011 at 4:23