aboutsummaryrefslogtreecommitdiffstats
path: root/scalding/src/test/scala/sandcrawler/ScorableFeaturesTest.scala
diff options
context:
space:
mode:
authorbnewbold <bnewbold@archive.org>2018-08-20 22:02:16 +0000
committerbnewbold <bnewbold@archive.org>2018-08-20 22:02:16 +0000
commit34fa226b27a8597ae1da788a41be2880b1cbf4fc (patch)
tree9aaa8365fb3facf5d88dabafdd61e70d7484f0ac /scalding/src/test/scala/sandcrawler/ScorableFeaturesTest.scala
parentaf0fa6edf3c21ac38a8ab4e0fb425e5471e6c3b6 (diff)
parent4f4571bbc1717c5ad9740377fdb8297da6632639 (diff)
downloadsandcrawler-34fa226b27a8597ae1da788a41be2880b1cbf4fc.tar.gz
sandcrawler-34fa226b27a8597ae1da788a41be2880b1cbf4fc.zip
Merge branch 'little-things' into 'master'
Small clean-up See merge request webgroup/sandcrawler!16
Diffstat (limited to 'scalding/src/test/scala/sandcrawler/ScorableFeaturesTest.scala')
-rw-r--r--scalding/src/test/scala/sandcrawler/ScorableFeaturesTest.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/scalding/src/test/scala/sandcrawler/ScorableFeaturesTest.scala b/scalding/src/test/scala/sandcrawler/ScorableFeaturesTest.scala
index 80d92aa..8a293fe 100644
--- a/scalding/src/test/scala/sandcrawler/ScorableFeaturesTest.scala
+++ b/scalding/src/test/scala/sandcrawler/ScorableFeaturesTest.scala
@@ -5,12 +5,12 @@ import org.scalatest._
// scalastyle:off null
class ScorableFeaturesTest extends FlatSpec with Matchers {
private def titleToSlug(s : String) : String = {
- new ScorableFeatures(title = s).toSlug
+ ScorableFeatures.create(title = s).toSlug
}
"toMapFeatures()" should "work with gnarly inputs" in {
- new ScorableFeatures(title = null).toMapFeatures
- new ScorableFeatures(title = "something", doi = null, sha1 = null, year = 123).toMapFeatures
+ ScorableFeatures.create(title = null).toMapFeatures
+ ScorableFeatures.create(title = "something", doi = null, sha1 = null, year = 123).toMapFeatures
}
"mapToSlug()" should "extract the parts of titles before a colon" in {