[Resolve Entities] Change test dataset to mirror the modification in the creation of the map between the pids and the unresolved

This commit is contained in:
Miriam Baglioni 2021-11-17 12:41:52 +01:00
parent 49f897ef29
commit 6d4a1c57ee
2 changed files with 3 additions and 6 deletions

View File

@ -52,8 +52,6 @@ class ResolveEntitiesTest extends Serializable {
}
def generateUpdates(spark:SparkSession):Unit = {
val template = Source.fromInputStream(this.getClass.getResourceAsStream("updates")).mkString
@ -152,7 +150,6 @@ class ResolveEntitiesTest extends Serializable {
val pubDS:Dataset[Result] = spark.read.text(s"$workingDir/work/resolvedGraph/publication").as[String].map(s => SparkResolveEntities.deserializeObject(s, EntityType.publication))
val t = pubDS.filter(p => p.getTitle!=null && p.getSubject!=null).filter(p => p.getTitle.asScala.exists(t => t.getValue.equalsIgnoreCase("FAKETITLE"))).count()