jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1381357 - /jmeter/trunk/test/src/org/apache/jmeter/visualizers/TestSamplingStatCalculator.java
Date Wed, 05 Sep 2012 20:39:43 GMT
Author: pmouawad
Date: Wed Sep  5 20:39:43 2012
New Revision: 1381357

URL: http://svn.apache.org/viewvc?rev=1381357&view=rev
Log:
Remove static import

Modified:
    jmeter/trunk/test/src/org/apache/jmeter/visualizers/TestSamplingStatCalculator.java

Modified: jmeter/trunk/test/src/org/apache/jmeter/visualizers/TestSamplingStatCalculator.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/visualizers/TestSamplingStatCalculator.java?rev=1381357&r1=1381356&r2=1381357&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/visualizers/TestSamplingStatCalculator.java (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/visualizers/TestSamplingStatCalculator.java Wed
Sep  5 20:39:43 2012
@@ -18,9 +18,8 @@
 
 package org.apache.jmeter.visualizers;
 
-import static org.junit.Assert.*;
-
 import org.apache.jmeter.samplers.SampleResult;
+import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
 
@@ -34,7 +33,7 @@ public class TestSamplingStatCalculator 
 
     @Test
     public void testGetCurrentSample() {
-        assertNotNull(ssc.getCurrentSample()); // probably needed to avoid NPEs with GUIs
+        Assert.assertNotNull(ssc.getCurrentSample()); // probably needed to avoid NPEs with
GUIs
     }
 
 //    @Test
@@ -60,14 +59,14 @@ public class TestSamplingStatCalculator 
     @Test
     public void testGetAvgPageBytes() {
         SampleResult res = new SampleResult();
-        assertEquals(0,ssc.getAvgPageBytes(),0);
+        Assert.assertEquals(0,ssc.getAvgPageBytes(),0);
         res.setResponseData("abcdef", "UTF-8");
         ssc.addSample(res);
         res.setResponseData("abcde", "UTF-8");
         ssc.addSample(res);
         res.setResponseData("abcd", "UTF-8");
         ssc.addSample(res);
-        assertEquals(5,ssc.getAvgPageBytes(),0);
+        Assert.assertEquals(5,ssc.getAvgPageBytes(),0);
     }
 
 //    @Test



Mime
View raw message