From: James A. <jam...@gm...> - 2007-01-17 14:04:00
|
On 16/01/07, Stefan Bodewig <bo...@ap...> wrote: > Hi all, > > after looking through James' patch for XML Schema validation I > realized that he was doing a few things differently from my namespace > patch for XPath. Namely he was adding a property to the XMLUnit class > while I overloaded tons of assertion methods in both XMLAssert and > XMLTestCase. James' approach is far more in line with the XMLUnit 1.0 > codebase than mine. > > I can't say that I like all the statics in XMLUnit too much but I > figured that a consistent API (or "conceptual integrity" if you want > to call it that) is more important than my personal preferences here. +1 about all the statics. My patch also demonstrated that if you do set a static like this, you may need remember to use the tearDown() method in your TestCase to unset / clear it afterwards. That's caught me out a few times. > > Accordingly I've removed all the overloads and introduced a static > xpathNamespaceContext property (with getters and setters) to XMLUnit. > > Stefan > > -- > http://stefan.samaflost.de/ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Xmlunit-general mailing list > Xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlunit-general > |