Skip to content
GitLab
Menu
Projects
Groups
Snippets
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
bad2be66
Commit
bad2be66
authored
Nov 02, 2020
by
Jonas Waeber
Browse files
Fix tests
parent
599efd4f
Pipeline
#16469
passed with stages
in 6 minutes and 11 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/test/kotlin/TestFacetBuilders.kt
View file @
bad2be66
...
...
@@ -41,7 +41,7 @@ class TestFacetBuilders {
fun
`test
person
facet
builder`
(
params
:
PersonFacetBuilderParams
)
{
val
builder
=
PersonFacetBuilder
()
if
(
builder
.
filter
(
params
.
source
))
{
val
log
=
builder
.
append
(
params
.
source
)
val
log
=
builder
.
append
(
"key"
,
params
.
source
)
val
result
=
builder
.
build
()
assertAll
(
""
,
{
assertThat
(
log
).
isEqualTo
(
params
.
log
)
},
...
...
@@ -100,14 +100,14 @@ class TestFacetBuilders {
fun
`test
multiple
person
facet
builder`
()
{
val
builder
=
PersonFacetBuilder
()
builder
.
append
(
json
{
builder
.
append
(
"key"
,
json
{
obj
(
Pair
(
KEYS
.
atType
,
NS
.
rico
+
"Person"
),
Pair
(
KEYS
.
name
,
"Einstein, Albert"
),
Pair
(
KEYS
.
agentIsTargetOfCreationRelation
,
"identifier"
)
)
})
builder
.
append
(
json
{
builder
.
append
(
"key"
,
json
{
obj
(
Pair
(
KEYS
.
atType
,
NS
.
rico
+
"Person"
),
Pair
(
KEYS
.
name
,
"Albert, Einstein"
),
...
...
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