incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Jaquith <andrew.r.jaqu...@gmail.com>
Subject WikiPage.equals()
Date Mon, 16 Mar 2009 04:13:24 GMT
In the 3.0 SVN, bunches of unit tests, like assertEquals( wikiPage,
context.getPage() ), aren't working any more because
JCRWikiPage.equals() doesn't really have a contract per se. It seems
to me that two JCRWikiPages ought to be considered equal when their
JCR paths and versions are the same. Note that the hashCode() method
incorporates the m_name (WikiName) and version fields, so that would
seem to imply that would be the correct test for equality.

Janne, what do you think?

-- Andrew

Mime
View raw message