Update LOBIDIsbnFetcherTest to the record lobid now returns - #16667
Conversation
lobid returns a different catalogue record for ISBN 9780321356680 than when the test was written - the resource id in the URL changed - so the two searchById tests fail on main. Adjust edition, keywords and url to the returned record, drop titleaddon which it no longer carries, and add the abstract it now has. The fetcher output is correct; only the expected entry was stale.
PR Summary by QodoRefresh LOBID ISBN test fixture for current catalogue record
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can switch off images and animations for a plain-text comment |
|
The rest already fail on main. Five differ from the main run I compared against (Medline x3, SciteAi, SemanticScholar), and those are |
You were asked not to communicate with AI. This is your second warning. |
Summary
lobid returns a different catalogue record for ISBN 9780321356680 than when the test was written — the resource id in the URL changed — so both
searchByIdtests fail on main. This updatesedition,keywordsandurlto the returned record, dropstitleaddon(no longer present) and adds theabstractit now carries. The fetcher output is correct; only the expected entry was stale.Steps to test
./gradlew :jablib:fetcherTest --tests "*LOBIDIsbnFetcherTest*"— 8 tests, 2 failures before, 0 after. No UI change.Related issues and pull requests
Closes #16666
AI usage
Claude Code (Anthropic, Claude Opus 5), used assistively — it ran the failing test, and I read the assertion diff and updated the expected fields. AIL2.
AI CHECKLIST.md walkthrough
Only
[x]where actually verified;[/]where a test-data change cannot apply.1. Code self-review — the diff is four field values in an existing test fixture.
== null,requireNonNull,@NullMarked,Optional,isBlank) — no code paths changedBibEntrybuilt with withers — unchanged, stillwithFieldPattern,BackgroundTask, Markdown Javadoc — not touchedassertEquals, no@DisplayName, no caught exceptions2. Verification commands
./gradlew :jablib:checkstyleTest— BUILD SUCCESSFUL./gradlew :jablib:fetcherTest --tests "*LOBIDIsbnFetcherTest*"— 8 tests, 0 failures:jablib:check,modernizer,rewriteDryRun,javadoc— not run locally (disk limits on my machine); relying on CI rather than ticking themmarkdownlint— no Markdown changed3. Documentation
CHANGELOG.md— CONTRIBUTING exempts changes not visible to the user; this is test-onlydocs/requirements/— not a feature or significant bug fix4. Pull request
gh pr create --body-fileTODOplaceholder — no changelog entryChecklist
fetcherTestinsteadCHANGELOG.mdin a way that can be understood by the average user (if change is visible to the user)