aboutsummaryrefslogtreecommitdiffstats
path: root/scalding/src/test
diff options
context:
space:
mode:
authorEllen Spertus <ellen.spertus@gmail.com>2018-06-05 11:57:31 -0700
committerEllen Spertus <ellen.spertus@gmail.com>2018-06-05 11:57:31 -0700
commite746171526f578789c55d7aa690cc8381e139439 (patch)
tree8a51b5b811b7fc98056faf77a6a1fe11645005b5 /scalding/src/test
parentb21cc924224202aba412370acafaaa4846bb4a8d (diff)
downloadsandcrawler-e746171526f578789c55d7aa690cc8381e139439.tar.gz
sandcrawler-e746171526f578789c55d7aa690cc8381e139439.zip
Made package names match directory names. Cleaned up imports.
Diffstat (limited to 'scalding/src/test')
-rw-r--r--scalding/src/test/scala/example/WordCountTest.scala3
-rw-r--r--scalding/src/test/scala/sandcrawler/HBaseBuilderTest.scala3
-rw-r--r--scalding/src/test/scala/sandcrawler/HBaseRowCountTest.scala14
3 files changed, 9 insertions, 11 deletions
diff --git a/scalding/src/test/scala/example/WordCountTest.scala b/scalding/src/test/scala/example/WordCountTest.scala
index c42770f..b3f3b64 100644
--- a/scalding/src/test/scala/example/WordCountTest.scala
+++ b/scalding/src/test/scala/example/WordCountTest.scala
@@ -13,8 +13,9 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
-package com.twitter.scalding
+package example
+import com.twitter.scalding.{ JobTest, TextLine, TypedTsv }
import org.scalatest.{ Matchers, WordSpec }
class WordCountTest extends WordSpec with Matchers {
diff --git a/scalding/src/test/scala/sandcrawler/HBaseBuilderTest.scala b/scalding/src/test/scala/sandcrawler/HBaseBuilderTest.scala
index b45751d..4697f56 100644
--- a/scalding/src/test/scala/sandcrawler/HBaseBuilderTest.scala
+++ b/scalding/src/test/scala/sandcrawler/HBaseBuilderTest.scala
@@ -1,8 +1,7 @@
-package example
+package sandcrawler
import cascading.tuple.Fields
import org.scalatest._
-import sandcrawler.HBaseBuilder
class HBaseBuilderTest extends FlatSpec with Matchers {
"parseColSpec()" should "work on legal nontrivial input" in {
diff --git a/scalding/src/test/scala/sandcrawler/HBaseRowCountTest.scala b/scalding/src/test/scala/sandcrawler/HBaseRowCountTest.scala
index abb017c..6f61eb3 100644
--- a/scalding/src/test/scala/sandcrawler/HBaseRowCountTest.scala
+++ b/scalding/src/test/scala/sandcrawler/HBaseRowCountTest.scala
@@ -1,18 +1,16 @@
-package example
+package sandcrawler
+import cascading.tuple.{Tuple, Fields}
+import com.twitter.scalding.{JobTest, Tsv, TupleConversions}
+import org.apache.hadoop.hbase.io.ImmutableBytesWritable
+import org.apache.hadoop.hbase.util.Bytes
import org.junit.runner.RunWith
-import com.twitter.scalding.{JobTest, TupleConversions}
import org.scalatest.FunSpec
import org.scalatest.junit.JUnitRunner
import org.slf4j.LoggerFactory
-import org.apache.hadoop.hbase.io.ImmutableBytesWritable
-import cascading.tuple.{Tuple, Fields}
-import org.apache.hadoop.hbase.util.Bytes
-import scala._
-import com.twitter.scalding.Tsv
import parallelai.spyglass.hbase.HBaseSource
import parallelai.spyglass.hbase.HBaseConstants.SourceMode
-import sandcrawler.HBaseRowCountJob
+import scala._
/**
* Example of how to define tests for HBaseSource