Commit 1696608d authored by Jonas Waeber's avatar Jonas Waeber

Add test for just first name in input data.

parent f9ba341d
Pipeline #17591 passed with stages
in 4 minutes and 46 seconds
...@@ -82,7 +82,7 @@ class TestFacetBuilders { ...@@ -82,7 +82,7 @@ class TestFacetBuilders {
json { json {
obj( obj(
Pair("@type", NS.rico + "Person"), Pair("@type", NS.rico + "Person"),
Pair(KEYS.name, "Albert Einstein"), Pair(KEYS.name, "Einstein"),
Pair(KEYS.lastName, "Einstein"), Pair(KEYS.lastName, "Einstein"),
Pair(KEYS.agentIsTargetOfCreationRelation, "identifier") Pair(KEYS.agentIsTargetOfCreationRelation, "identifier")
) )
...@@ -94,6 +94,23 @@ class TestFacetBuilders { ...@@ -94,6 +94,23 @@ class TestFacetBuilders {
"0~E~", "0~E~",
"1~E~Einstein~" "1~E~Einstein~"
) )
),
PersonFacetBuilderParams(
json {
obj(
Pair("@type", NS.rico + "Person"),
Pair(KEYS.name, "Albert"),
Pair(KEYS.firstName, "Albert"),
Pair(KEYS.agentIsTargetOfCreationRelation, "identifier")
)
},
mapOf(Pair("identifier", json { obj(Pair(KEYS.ricoType, KEYS.contributor)) })),
KEYS.contributor,
"",
listOf(
"0~A~",
"1~A~Albert~"
)
) )
) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment