forked from antonis.lempesis/dnet-hadoop
Merge branch 'master' of https://code-repo.d4science.org/D-Net/dnet-hadoop
This commit is contained in:
commit
9629569e22
|
@ -61,7 +61,7 @@ class MappingORCIDToOAFTest {
|
||||||
assertTrue(oA == p.count())
|
assertTrue(oA == p.count())
|
||||||
println(mapper.writerWithDefaultPrettyPrinter().writeValueAsString(p.first()))
|
println(mapper.writerWithDefaultPrettyPrinter().writeValueAsString(p.first()))
|
||||||
|
|
||||||
|
spark.close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ class MappingORCIDToOAFTest {
|
||||||
val oaf = ORCIDToOAF.convertTOOAF(orcid)
|
val oaf = ORCIDToOAF.convertTOOAF(orcid)
|
||||||
assert(oaf.getPid.size() == 1)
|
assert(oaf.getPid.size() == 1)
|
||||||
oaf.getPid.toList.foreach(pid => assert(pid.getQualifier.getClassid.equals("doi")))
|
oaf.getPid.toList.foreach(pid => assert(pid.getQualifier.getClassid.equals("doi")))
|
||||||
oaf.getPid.toList.foreach(pid => assert(pid.getValue.equals("10.1042/BCJ20160876".toLowerCase())))
|
oaf.getPid.toList.foreach(pid => assert(pid.getValue.equals("10.1042/BCJ20160876")))
|
||||||
//println(mapper.writeValueAsString(ORCIDToOAF.convertTOOAF(orcid)))
|
//println(mapper.writeValueAsString(ORCIDToOAF.convertTOOAF(orcid)))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue