Skip to content

Replaced Hamcrest with Assertj#27

Merged
Eiriknil merged 10 commits into
mainfrom
assertj
Jun 9, 2026
Merged

Replaced Hamcrest with Assertj#27
Eiriknil merged 10 commits into
mainfrom
assertj

Conversation

@Eiriknil

@Eiriknil Eiriknil commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

All Hamcrest matchers replaced with AssertJ asserts
Added BibTex tests for AcademicChapter, ReseachReport and DegreePhd

@Eiriknil Eiriknil requested review from LarsV123 and torbjokv June 9, 2026 07:21
Comment on lines +157 to +162
if (publicationContext.containsKey("publisher")) {
Map<String, Object> publisher =
referenceJsonPath.get("reference.publicationContext.publisher");
publisher.put("id", publisher.get("id") + "/" + CURRENT_YEAR);
publicationContext.put("publisher", publisher);
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why only append the year for publishers? Does this affect series/journals?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, think there is a bug for degrees, got a 500 error when I omitted year for publisher.

Comment thread publication-api/src/testFixtures/java/no/sikt/nva/PublicationFactory.java Outdated
Comment thread publication-api/src/testFixtures/java/no/sikt/nva/PublicationFactory.java Outdated
@Eiriknil Eiriknil merged commit b76a7c2 into main Jun 9, 2026
4 checks passed
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.

3 participants