[TASK] Fix Unit Test ignored in Content Analytics test
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 970
- Forks
- 486
- Avg merge
- 3d 33m
- Merged PRs (30d)
- 170
Description
Description
As part of the required back-end changes made in this ticket:
- #34357
We identified that specific tests in the dotCMS/src/test/java/com/dotcms/analytics/web/AnalyticsWebAPITest.java Unit Test needed to be moved to an Integration Test as they now involve database operations at some point along the call stack.
However, originally those specific tests return false positives as they were not accessing data from the correct dotCMS App: They must interact with the Content Analytics App, not the Experiments App.
Acceptance Criteria
- Migrate the specific tests as Integration Tests.
- Generate the mocked data to simulate access to the expected
Content AnalyticsApp.
Priority
Medium
Additional Context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in dotCMS/src/test/java/com/dotcms/analytics/web/AnalyticsWebAPITest.java and identify the tests described as needing migration. Review the related back-end changes in #34357, then move the specific cases to integration tests and verify them with mocked data for the Content Analytics App rather than the Experiments App.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100