Skip to content

JSPWIKI-572 Add tests for the IndexPlugin - #651

Draft
arturobernalg wants to merge 1 commit into
apache:masterfrom
arturobernalg:test/JSPWIKI-572-indexplugin
Draft

arturobernalg wants to merge 1 commit into
apache:masterfrom
arturobernalg:test/JSPWIKI-572-indexplugin

Conversation

@arturobernalg

Copy link
Copy Markdown
Member

The IndexPlugin has no tests. JSPWIKI-572 reports that the plugin does not list all the pages when their names differ only in the case of a letter, and that it shows empty entries.

I could not reproduce either on the current master, nor on master-2.x. I created the 17 variants of TEST in a running wiki and the plugin listed all of them, without empty entries. This pull request adds tests so that it does not regress:

  • the pages are grouped by their first letter and sorted
  • no entry is empty
  • the pages whose names differ only in the case of a letter are all listed (skipped on file systems that do not distinguish the case)

The tests pass on master and, adapted to the request helper of that branch, on master-2.x.

ChangeLog.md and Release.java are updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant