Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
Elasticsearch Services
Search Doc Service
Commits
b149f591
Commit
b149f591
authored
Dec 08, 2020
by
Jonas Waeber
Browse files
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
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