You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by se...@apache.org on 2011/11/04 10:19:52 UTC

svn commit: r1197453 - /jmeter/trunk/test/src/org/apache/jorphan/math/TestStatCalculator.java

Author: sebb
Date: Fri Nov  4 09:19:52 2011
New Revision: 1197453

URL: http://svn.apache.org/viewvc?rev=1197453&view=rev
Log:
Don't worry about boxing in assertions

Modified:
    jmeter/trunk/test/src/org/apache/jorphan/math/TestStatCalculator.java

Modified: jmeter/trunk/test/src/org/apache/jorphan/math/TestStatCalculator.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jorphan/math/TestStatCalculator.java?rev=1197453&r1=1197452&r2=1197453&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jorphan/math/TestStatCalculator.java (original)
+++ jmeter/trunk/test/src/org/apache/jorphan/math/TestStatCalculator.java Fri Nov  4 09:19:52 2011
@@ -102,6 +102,7 @@ public class TestStatCalculator extends 
         assertTrue(map.containsKey(Integer.valueOf(2)));
     }
     
+    @SuppressWarnings("boxing")
     public void testBug52125_1(){ // No duplicates when adding
         calc.addValue(1L);
         calc.addValue(2L);
@@ -114,6 +115,7 @@ public class TestStatCalculator extends 
         assertEquals(0.5773502691896255, calc.getStandardDeviation());
     }
 
+    @SuppressWarnings("boxing")
     public void testBug52125_2(){ // add duplicates
         calc.addValue(1L);
         calc.addValue(2L);
@@ -124,6 +126,7 @@ public class TestStatCalculator extends 
         assertEquals(0.5773502691896255, calc.getStandardDeviation());
     }
 
+    @SuppressWarnings("boxing")
     public void testBug52125_3(){ // add duplicates as per bug
         calc.addValue(1L);
         calc.addValue(2L);