Permalink
Browse files

Moves JobTest into main.

Allows users of the jar to build their own unit tests, without
packaging all our tests into the jar.  JobTest is really a light-weight
test framework, and it contains no test code itself.
  • Loading branch information...
1 parent 6bccce3 commit b494fbdda6d23eceb727f7b6854136616fc50365 @johnynek johnynek committed Mar 2, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/{test → main}/scala/com/twitter/scalding/JobTest.scala
View
8 .../scala/com/twitter/scalding/JobTest.scala → .../scala/com/twitter/scalding/JobTest.scala
@@ -4,14 +4,20 @@ import scala.collection.mutable.{Buffer, ListBuffer}
import scala.annotation.tailrec
import cascading.tuple.Tuple
-import cascading.tuple.TupleEntry
import org.apache.hadoop.mapred.JobConf
object JobTest {
def apply(jobName : String) = new JobTest(jobName)
}
+/**
+ * This class is used to construct unit tests for scalding jobs.
+ * You should not use it unless you are writing tests.
+ * For examples of how to do that, see the tests included in the
+ * main scalding repository:
+ * https://github.com/twitter/scalding/tree/master/src/test/scala/com/twitter/scalding
+ */
class JobTest(jobName : String) extends TupleConversions {
private var argsMap = Map[String, List[String]]()
private val callbacks = Buffer[() => Unit]()

0 comments on commit b494fbd

Please sign in to comment.