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

start test case for contributor

parent d85b0a77
Pipeline #22771 passed with stages
in 6 minutes and 21 seconds
/*
* rico2edm
* Copyright (C) 2021 UB Basel
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
package ch.memobase.edm
import ch.memobase.Utils.loadFile
import org.scalatest.funsuite.AnyFunSuite
import org.scalatest.matchers.should.Matchers
class CHOSpec extends AnyFunSuite with Matchers{
private lazy val rawRicoIndent = loadFile("src/test/resources/rawIndent.json")
test("get contributors") {
val graph = Extractors.jsonGraph(rawRicoIndent).get.arr
val record = Extractors.record(graph).get.obj
/*
val contributors
= Extractors
.resourceCreator(graph)(
record.value
)
println(contributors)
*/
}
}
Supports Markdown
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