Author: sebb
Date: Tue Dec 15 00:15:20 2009
New Revision: 890577
URL: http://svn.apache.org/viewvc?rev=890577&view=rev
Log:
Ensure initial min and max are correct
Modified:
jakarta/jmeter/trunk/test/src/org/apache/jorphan/math/TestStatCalculator.java
Modified: jakarta/jmeter/trunk/test/src/org/apache/jorphan/math/TestStatCalculator.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/test/src/org/apache/jorphan/math/TestStatCalculator.java?rev=890577&r1=890576&r2=890577&view=diff
==============================================================================
--- jakarta/jmeter/trunk/test/src/org/apache/jorphan/math/TestStatCalculator.java (original)
+++ jakarta/jmeter/trunk/test/src/org/apache/jorphan/math/TestStatCalculator.java Tue Dec 15 00:15:20 2009
@@ -33,9 +33,6 @@
super();
}
- /**
- * @param arg0
- */
public TestStatCalculator(String arg0) {
super(arg0);
}
@@ -60,6 +57,8 @@
assertEquals(9, calc.getPercentPoint(0.8999999).intValue());
}
public void testCalculation() {
+ assertEquals(Long.MIN_VALUE, calc.getMax().longValue());
+ assertEquals(Long.MAX_VALUE, calc.getMin().longValue());
calc.addValue(18);
calc.addValue(10);
calc.addValue(9);
@@ -91,6 +90,8 @@
public void testInteger(){
StatCalculatorInteger calci = new StatCalculatorInteger();
+ assertEquals(Integer.MIN_VALUE, calci.getMax().intValue());
+ assertEquals(Integer.MAX_VALUE, calci.getMin().intValue());
calci.addValue(0);
calci.addValue(2);
calci.addValue(2);
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.