I'd like Janne's take on this, but changing the tests to include the
prepended space name sounds like a good idea to me.
On a related note: I am considering changing the method name
WikiPage.getQualifiedName() to .getWikiName(). Makes more sense. Any
objections?
Andrew
On Apr 10, 2009, at 13:27, Harry Metske <[email protected]> wrote:
I started to dig into the JUnit tests that are failing, starting with
WikiEngineTest.
I noticed that many tests fail because the pageName returned is
prepended
with "Main:".
For example:
*assertEquals( "plural mistake", "Foobars", m_engine.getFinalPageName(
WikiName.valueOf("Foobars") ) );*
The test can be changed to make it succeed by changing it to :
*assertEquals( "plural mistake", "Main:Foobars",
m_engine.getFinalPageName(
WikiName.valueOf( "Foobars" ) ).toString() );*
Is that the correct fix ?
Harry