forked from D-Net/dnet-hadoop
Hosted By Map - test modified because of the application of the new aggregator on datasources
This commit is contained in:
parent
e94ae0b1de
commit
eb8c3f8594
|
@ -98,7 +98,7 @@ class TestApply extends java.io.Serializable{
|
|||
|
||||
|
||||
val dats_ds :Dataset[Datasource] = spark.read.textFile(dats).map(p => mapper.readValue(p, classOf[Datasource]))
|
||||
val hbm_ds :Dataset[EntityInfo] = spark.read.textFile(hbm).map(p => mapper.readValue(p, classOf[EntityInfo]))
|
||||
val hbm_ds :Dataset[EntityInfo] = Aggregators.datasourceToSingleId(spark.read.textFile(hbm).map(p => mapper.readValue(p, classOf[EntityInfo])))
|
||||
|
||||
|
||||
assertEquals(10, dats_ds.count())
|
||||
|
@ -122,7 +122,7 @@ class TestApply extends java.io.Serializable{
|
|||
|
||||
}else{
|
||||
assertTrue(pa.getOpenairecompatibility().getClassid.equals(pb.getOpenairecompatibility.getClassid))
|
||||
assertTrue(pa.getOpenairecompatibility().getClassname.equals(pb.getOpenairecompatibility.getClassid))
|
||||
assertTrue(pa.getOpenairecompatibility().getClassname.equals(pb.getOpenairecompatibility.getClassname))
|
||||
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue