junit.framework.TestCaseorg.apache.mahout.common.MahoutTestCase



Project apache/mahout in file ...ahout.classifier.bayes.BayesFeatureMapperTest.java (2010-01-17)
@@ -20,8 +20,6 @@ package org.apache.mahout.classifier.bayes;
 import java.util.List;
 import java.util.Map;
 
-import junit.framework.TestCase;
-
 import org.apache.hadoop.io.DoubleWritable;
 import org.apache.hadoop.io.Text;
 import org.apache.hadoop.mapred.JobConf;
@@ -29,9 +27,10 @@ import org.apache.hadoop.mapred.Reporter;
 import org.apache.mahout.classifier.bayes.common.BayesParameters;
 import org.apache.mahout.classifier.bayes.mapreduce.common.BayesFeatureMapper;
 import org.apache.mahout.common.DummyOutputCollector;
+import org.apache.mahout.common.MahoutTestCase;
 import org.apache.mahout.common.StringTuple;
 
-public class BayesFeatureMapperTest extends TestCase {
+public class BayesFeatureMapperTest extends MahoutTestCase {
   
   public void test() throws Exception {
     BayesFeatureMapper mapper = new BayesFeatureMapper();
Project apache/mahout in file ...che.mahout.clustering.dirichlet.TestMapReduce.java (2010-01-17)
@@ -18,7 +18,6 @@ package org.apache.mahout.clustering.dirichlet;
 
 import com.google.gson.Gson;
 import com.google.gson.GsonBuilder;
-import junit.framework.TestCase;
 import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.fs.FileSystem;
 import org.apache.hadoop.io.Text;
@@ -34,6 +33,7 @@ import org.apache.mahout.clustering.dirichlet.models.SampledNormalDistribution;
 import org.apache.mahout.clustering.dirichlet.models.SampledNormalModel;
 import org.apache.mahout.clustering.kmeans.KMeansDriver;
 import org.apache.mahout.common.DummyOutputCollector;
+import org.apache.mahout.common.MahoutTestCase;
 import org.apache.mahout.common.RandomUtils;
 import org.apache.mahout.math.DenseVector;
 import org.apache.mahout.math.JsonVectorAdapter;
@@ -47,7 +47,7 @@ import java.util.ArrayList;
 import java.util.List;
 import java.util.Map;
 
-public class TestMapReduce extends TestCase {
+public class TestMapReduce extends MahoutTestCase {
 
   private List<VectorWritable> sampleData = new ArrayList<VectorWritable>();
 
Project apache/mahout in file ...stering.fuzzykmeans.TestFuzzyKmeansClustering.java (2010-01-17)
@@ -17,7 +17,6 @@
 
 package org.apache.mahout.clustering.fuzzykmeans;
 
-import junit.framework.TestCase;
 import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.fs.FileSystem;
 import org.apache.hadoop.fs.Path;
@@ -26,6 +25,7 @@ import org.apache.hadoop.io.Text;
 import org.apache.hadoop.mapred.JobConf;
 import org.apache.mahout.clustering.ClusteringTestUtils;
 import org.apache.mahout.clustering.kmeans.TestKmeansClustering;
+import org.apache.mahout.common.MahoutTestCase;
 import org.apache.mahout.math.Vector;
 import org.apache.mahout.common.distance.DistanceMeasure;
 import org.apache.mahout.common.DummyOutputCollector;
@@ -38,7 +38,7 @@ import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 
-public class TestFuzzyKmeansClustering extends TestCase {
+public class TestFuzzyKmeansClustering extends MahoutTestCase {
 
   FileSystem fs;
 
Project apache/mahout in file ...mahout.clustering.kmeans.TestKmeansClustering.java (2010-01-17)
@@ -17,7 +17,6 @@
 
 package org.apache.mahout.clustering.kmeans;
 
-import junit.framework.TestCase;
 import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.fs.FileSystem;
 import org.apache.hadoop.fs.Path;
@@ -26,6 +25,7 @@ import org.apache.hadoop.io.Text;
 import org.apache.hadoop.mapred.JobConf;
 import org.apache.mahout.clustering.ClusteringTestUtils;
 import org.apache.mahout.clustering.canopy.CanopyDriver;
+import org.apache.mahout.common.MahoutTestCase;
 import org.apache.mahout.common.distance.DistanceMeasure;
 import org.apache.mahout.common.DummyOutputCollector;
 import org.apache.mahout.common.distance.EuclideanDistanceMeasure;
@@ -44,7 +44,7 @@ import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 
-public class TestKmeansClustering extends TestCase {
+public class TestKmeansClustering extends MahoutTestCase {
 
   public static final double[][] reference = {{1, 1}, {2, 1}, {1, 2},
       {2, 2}, {3, 3}, {4, 4}, {5, 4}, {4, 5}, {5, 5}};
Project apache/mahout in file ...out.common.distance.CosineDistanceMeasureTest.java (2010-01-17)
@@ -17,12 +17,11 @@
 
 package org.apache.mahout.common.distance;
 
-import junit.framework.TestCase;
-
+import org.apache.mahout.common.MahoutTestCase;
 import org.apache.mahout.math.DenseVector;
 import org.apache.mahout.math.Vector;
 
-public class CosineDistanceMeasureTest extends TestCase {
+public class CosineDistanceMeasureTest extends MahoutTestCase {
 
   public void testMeasure() {