pig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@apache.org
Subject svn commit: r1791665 - /pig/trunk/test/org/apache/pig/test/TestEvalPipelineLocal.java
Date Mon, 17 Apr 2017 07:15:03 GMT
Author: daijy
Date: Mon Apr 17 07:15:03 2017
New Revision: 1791665

URL: http://svn.apache.org/viewvc?rev=1791665&view=rev
Log:
PIG-5222: Fix Junit Deprecations (PIG-5222-fixtest.patch)

Modified:
    pig/trunk/test/org/apache/pig/test/TestEvalPipelineLocal.java

Modified: pig/trunk/test/org/apache/pig/test/TestEvalPipelineLocal.java
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/test/TestEvalPipelineLocal.java?rev=1791665&r1=1791664&r2=1791665&view=diff
==============================================================================
--- pig/trunk/test/org/apache/pig/test/TestEvalPipelineLocal.java (original)
+++ pig/trunk/test/org/apache/pig/test/TestEvalPipelineLocal.java Mon Apr 17 07:15:03 2017
@@ -128,7 +128,7 @@ public class TestEvalPipelineLocal {
             // otherwise, we get a compiler error
             // error: reference to assertEquals is ambiguous
             // both method assertEquals(Object,Object) in Assert and method assertEquals(double,double)
in Assert match
-            Assert.assertEquals((double) DataType.toDouble(iter.next().get(0)), 0.0);
+            Assert.assertEquals((double) DataType.toDouble(iter.next().get(0)), 0.0, Double.MIN_VALUE);
         }
         
     }
@@ -217,7 +217,7 @@ public class TestEvalPipelineLocal {
         // otherwise, we get a compiler error:
         // error: reference to assertEquals is ambiguous
         // both method assertEquals(Object,Object) in Assert and method assertEquals(double,double)
in Assert match
-        Assert.assertEquals((double) DataType.toDouble(t.get(1)), 0.3);
+        Assert.assertEquals((double) DataType.toDouble(t.get(1)), 0.3, Double.MIN_VALUE);
         Assert.assertFalse(iter.hasNext());
     }
     
@@ -377,7 +377,7 @@ public class TestEvalPipelineLocal {
             Tuple t = iter.next();
             Assert.assertEquals(
                     expectedResults.get(t.get(1).toString()).doubleValue(),
-                    (DataType.toDouble(t.get(0))).doubleValue());
+                    (DataType.toDouble(t.get(0))).doubleValue(), Double.MIN_VALUE);
         }
     }
     



Mime
View raw message