Commit 8e615736 authored by Günter Hipler's avatar Günter Hipler
Browse files

more useful test for edm:object property plus changed name for testfile

parent 03b662fb
Pipeline #24256 passed with stages
in 7 minutes and 30 seconds
......@@ -39,6 +39,7 @@ class AggregationSpec extends AnyFunSuite with Matchers {
private def testAggregation = {
val graph = Extractors.jsonGraph(rawRicoIndent).get.arr
val record = Extractors.record(graph).get
......@@ -129,8 +130,20 @@ class AggregationSpec extends AnyFunSuite with Matchers {
//warum bekomme ich einen anderen Werz in der API
val errorCase = createAgg(rawTestedmObject)
println(Utils.serializeRDFModel(errorCase.getModel))
//val errorCase = createAgg(rawTestedmObject)
//println(Utils.serializeRDFModel(errorCase.getModel))
//test with EDM object
val gr = Extractors.jsonGraph(rawTestedmObject).get.arr
val record = Extractors.record(gr).get
val doObj = Extractors.digitalObject(gr).get
val edm = new EDM
val agg = edm.createAggregation(gr,record,doObj)
assert(Utils.serializeRDFModel(agg.get.obj.getModel).contains (
"<edm:object>https://media.memobase.ch/memo/apf-001-1280-1-poster</edm:object>"))
}
test ("edm:rights property for aggregation ") {
......
......@@ -38,7 +38,7 @@ class CHOSpec extends AnyFunSuite with Matchers{
private lazy val ricoRegulatedBy = loadFile("src/test/resources/rico.regulatedBy.json")
private lazy val ricoNoSourceInRecord = loadFile("src/test/resources/raw2.indent.json")
private lazy val ricoPlaceCapture = loadFile("src/test/resources/fuer.silvia.json")
private lazy val ricoPlaceCapture = loadFile("src/test/resources/apf-001-1284.edm.object.json")
private lazy val ricoCertainty = loadFile("src/test/resources/rico.certainty.json")
private lazy val ricoDuration = loadFile("src/test/resources/rico.duration.json")
......
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