[xwiki-contrib/application-blog] b40a69: BLOG-269: Add tests covering how blog, post and ca...
Branch: refs/heads/vmassol/BLOG-269-java-tests Home: https://github.com/xwiki-contrib/application-blog Commit: b40a69b2830aff4cb1873955aa5936972d080f08 https://github.com/xwiki-contrib/application-blog/commit/b40a69b2830aff4cb18... Author: Vincent Massol <[email protected]> Date: 2026-10-14 (Wed, 14 Oct 2026) Changed paths: M application-blog-api/pom.xml M application-blog-api/src/test/java/org/xwiki/platform/blog/internal/BlogMoveListenerTest.java A application-blog-api/src/test/java/org/xwiki/platform/blog/internal/CategoryLocationMigrationTest.java A application-blog-api/src/test/java/org/xwiki/platform/blog/internal/CategoryRenameListenerTest.java A application-blog-api/src/test/java/org/xwiki/platform/blog/internal/InMemoryBlogQueries.java Log Message: ----------- BLOG-269: Add tests covering how blog, post and category locations are resolved * Java unit test part of the characterization tests (application-blog-api), pinning today's behaviour before the location logic is refactored. * Add CategoryRenameListenerTest: events listened to, parent restored after a rename, blog posts' categories rewritten, non-category pages ignored, error handling. * Add CategoryLocationMigrationTest: hasLegacyCategoryAssignments (true/false/query failure), move of the legacy Blog.X categories to Blog.Categories.X, subcategory re-parenting, blog post and backlink rewriting, default categories pass. * Extend BlogMoveListenerTest: rename inside the same space, categories space moved alone. * Add InMemoryBlogQueries, a test helper answering the blog queries from the in-memory documents by intent. * Pin the current (buggy) behaviour of BLOG-273 (category moved to the end of the posts' categories), BLOG-274 (renamed category's parent stored with the wiki prefix), BLOG-275 (migration renames the shipped legacy pages over the Blog.Categories ones), BLOG-276 (migrating another wiki uses references of the current wiki) and BLOG-277 (categories space moved alone not followed). * Raise the JaCoCo instruction ratio of application-blog-api from 0.43 to 0.90. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki-contrib/application-blog/settings/notifications
participants (1)
-
XWiki Notifications