Hi Jeff, John should know if the equals method will work in this case. However...
I'd like to suggest an alternate approach and the justification for using the approach. I like to test generated documents against expected documents by comparing the two documents themselves (line for line). I'm not a fan of transforming the results of the generation before testing as there is no guarantee the documents will then be the same. For example, Woden may discard or default certain elements/attributes (correctly or incorrectly) that will result in the test passing even though the documents are actually different. Lawrence "Jeff MAURY" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 06/12/2008 07:20 AM Please respond to [email protected] To [email protected] cc Subject Questions about tests Hello, as I am working on the converter, I have a little question. In order to non regress the converter, I want to build tests that checks the output. The fastest and easiest way to do it is to compare the generated WSDL2.0 with the expected WSDL2.0. In order to do that, my idea was to load both documents using the Woden API and to use the equals method on the resulting objects in order to check the equality. Can I do that ? Thanks Jeff MAURY -- La mélancolie c'est communiste Tout le monde y a droit de temps en temps La mélancolie n'est pas capitaliste C'est même gratuit pour les perdants La mélancolie c'est pacifiste On ne lui rentre jamais dedans La mélancolie oh tu sais ça existe Elle se prend même avec des gants La mélancolie c'est pour les syndicalistes Il faut juste sa carte de permanent Miossec (2006) http://www.jeffmaury.com http://riadiscuss.jeffmaury.com http://www.lastfm.fr/listen/user/jeffmaury/personal --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
