Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
StigNorland committed Dec 17, 2024
1 parent 2506167 commit 4e5f35c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ protected String processInput(Void input, RequestInfo requestInfo, Context conte
};
}

@JacocoGenerated
@Override
protected void addAdditionalHeaders(Supplier<Map<String, String>> additionalHeaders) {
super.addAdditionalHeaders(() -> Map.of(HttpHeaders.VARY, HttpHeaders.ACCEPT));
Expand Down
33 changes: 31 additions & 2 deletions search-handlers/src/test/resources/sample_opensearch_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,23 @@
"id": "http://localhost/publication/f367b260-c15e-4d0f-b197-e1dc0e9eb0e8",
"identifier": "f367b260-c15e-4d0f-b197-e1dc0e9eb0e8",
"doi": "https://doi.org/10.1016/j.is.2016.09.004",
"additionalIdentifiers": [
{
"sourceName": "brage@ffi",
"type": "HandleIdentifier",
"value": "https://hdl.handle.net/20.500.12242/2287"
},
{
"sourceName": "cristin@hibo",
"type": "ScopusIdentifier",
"value": "2-s2.0-84949324400"
},
{
"sourceName": "cristin@hibo",
"type": "CristinIdentifier",
"value": "1133971"
}
],
"entityDescription": {
"contributorsPreview": [
{
Expand All @@ -39,7 +56,12 @@
{
"name": "Nørvåg, Kjetil"
}
]
],
"reference": {
"publicationContext": {
"onlineIssn": "0167-9236"
}
}
},
"title": "Exploratory product search using top-k join queries",
"description": "the description",
Expand Down Expand Up @@ -80,7 +102,14 @@
{
"name": "Nørvåg, Kjetil"
}
]
],
"reference": {
"publicationContext": {
"series": {
"printIssn": "0167-9236"
}
}
}
},
"title": "Exploratory product search using top-k join queries",
"description": "the description",
Expand Down

0 comments on commit 4e5f35c

Please sign in to comment.