Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
memoriav
M
Memobase 2020
S
services
elastic-services
Search Doc Service
Commits
b149f591
Commit
b149f591
authored
Dec 08, 2020
by
Jonas Waeber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests
parent
0beede17
Pipeline
#18774
passed with stages
in 5 minutes and 31 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/main/kotlin/model/DocumentsSearchDoc.kt
src/main/kotlin/model/DocumentsSearchDoc.kt
+2
-2
src/test/kotlin/TestDocumentsSearchDoc.kt
src/test/kotlin/TestDocumentsSearchDoc.kt
+1
-1
No files found.
src/main/kotlin/model/DocumentsSearchDoc.kt
View file @
b149f591
...
...
@@ -130,7 +130,7 @@ data class DocumentsSearchDoc(
emptyList
()
),
"NoSourceIdFound"
,
"
https://memobase.ch/record/
TestIdentifier"
,
"TestIdentifier"
,
emptyList
(),
emptyList
(),
emptyList
(),
...
...
@@ -164,7 +164,7 @@ data class DocumentsSearchDoc(
emptyList
(),
emptyList
(),
emptyList
(),
emptyList
(
),
listOf
(
FacetContainer
.
placeholder
(
"NoInstitutionInRecord"
)
),
FacetContainer
.
placeholder
(
"NoRecordSetInRecord"
),
false
,
emptyList
(),
...
...
src/test/kotlin/TestDocumentsSearchDoc.kt
View file @
b149f591
...
...
@@ -26,7 +26,7 @@ class TestDocumentsSearchDoc {
fun
`test
minimal
record
required`
()
{
val
input
=
JSON
.
parse
(
readFile
(
"minimal_record_required.json"
))
val
mappedInput
=
JSON
.
unpack
(
input
)
val
output
=
transformer
.
transform
(
""
,
val
output
=
transformer
.
transform
(
"
TestIdentifier
"
,
mappedInput
)
assertThat
(
output
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment