Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Search Doc Service
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
memoriav
M
Memobase 2020
S
services
elastic-services
Search Doc Service
Commits
5e6de51a
Commit
5e6de51a
authored
Oct 30, 2020
by
Jonas Waeber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test
parent
58818bc8
Pipeline
#16411
passed with stages
in 5 minutes and 24 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
src/test/kotlin/TestTransform.kt
src/test/kotlin/TestTransform.kt
+5
-6
No files found.
src/test/kotlin/TestTransform.kt
View file @
5e6de51a
...
...
@@ -7,7 +7,6 @@ import org.junit.jupiter.api.assertThrows
import
org.memobase.helpers.JSON
import
java.io.File
import
java.io.FileInputStream
import
java.nio.charset.Charset
@TestInstance
(
TestInstance
.
Lifecycle
.
PER_CLASS
)
class
TestTransform
{
...
...
@@ -25,11 +24,11 @@ class TestTransform {
@Test
fun
`test
enriched
digital
metadata
record`
()
{
val
searchDoc
=
SearchDocTransform
(
"https://media.memobase.k8s.unibas.ch/memo/"
)
val
input
=
JSON
.
unpack
(
JSON
.
parse
(
FileInputStream
(
File
(
"$dataPath/enrich_digital_metadata_record.json"
)).
readAllBytes
().
toString
(
Charset
.
defaultCharset
()
)
)
[
0
])
val
input
=
JSON
.
unpack
(
JSON
.
parse
(
FileInputStream
(
File
(
"$dataPath/enrich_digital_metadata_record.json"
)).
bufferedReader
().
readLines
()
.
reduce
{
acc
,
s
->
acc
+
"\n"
+
s
})[
0
]
)
val
values
=
searchDoc
.
transform
(
input
)
}
}
\ No newline at end of file
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