diff options
author | Bryan Newbold <bnewbold@archive.org> | 2018-05-29 11:01:14 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2018-05-29 11:01:14 -0700 |
commit | c14676635f39dd1bc0345e4df2d1fa06c298bfd7 (patch) | |
tree | 4fcdfc2aa27f56973b68a9cad32f4a0120b9a756 /scalding/src/test | |
parent | 62bfc9d5f40ccd690b4b070d64d046fb6b1e3e8a (diff) | |
download | sandcrawler-c14676635f39dd1bc0345e4df2d1fa06c298bfd7.tar.gz sandcrawler-c14676635f39dd1bc0345e4df2d1fa06c298bfd7.zip |
HBaseRowCountJob actually counts rows
Diffstat (limited to 'scalding/src/test')
-rw-r--r-- | scalding/src/test/scala/sandcrawler/HBaseRowCountTest.scala | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scalding/src/test/scala/sandcrawler/HBaseRowCountTest.scala b/scalding/src/test/scala/sandcrawler/HBaseRowCountTest.scala index 598f45d..ac7cf18 100644 --- a/scalding/src/test/scala/sandcrawler/HBaseRowCountTest.scala +++ b/scalding/src/test/scala/sandcrawler/HBaseRowCountTest.scala @@ -46,11 +46,15 @@ class HBaseRowCountTest extends FunSpec with TupleConversions { sampleData.map(l => new Tuple(l.map(s => {new ImmutableBytesWritable(Bytes.toBytes(s))}):_*))) .sink[Tuple](Tsv(output format "get_list")) { outputBuffer => - log.debug("Output => " + outputBuffer) it("should return the test data provided.") { println("outputBuffer.size => " + outputBuffer.size) - assert(outputBuffer.size === 2) + assert(outputBuffer.size === 1) + } + + it("should return the correct count") { + println("raw output => " + outputBuffer) + assert(outputBuffer(0).getObject(0) === 2) } } .run |