jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1859463 - /jmeter/trunk/test/src/org/apache/jmeter/config/TestRandomVariableConfig.java
Date Sat, 18 May 2019 10:34:39 GMT
Author: fschumacher
Date: Sat May 18 10:34:39 2019
New Revision: 1859463

URL: http://svn.apache.org/viewvc?rev=1859463&view=rev
Log:
Spacepolice

Modified:
    jmeter/trunk/test/src/org/apache/jmeter/config/TestRandomVariableConfig.java

Modified: jmeter/trunk/test/src/org/apache/jmeter/config/TestRandomVariableConfig.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/config/TestRandomVariableConfig.java?rev=1859463&r1=1859462&r2=1859463&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/config/TestRandomVariableConfig.java (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/config/TestRandomVariableConfig.java Sat May 18
10:34:39 2019
@@ -38,7 +38,7 @@ public class TestRandomVariableConfig ex
     private static final String RANDOM_VAR_NAME = "randomVar";
 
     private JMeterVariables threadVars;
-    
+
     private static final String MIN_VALUE = "0";
     private static final String MAX_VALUE = "10";
     RandomVariableConfig config = new RandomVariableConfig();
@@ -47,16 +47,15 @@ public class TestRandomVariableConfig ex
     public void setUp(){
         JMeterContext jmcx = JMeterContextService.getContext();
         jmcx.setVariables(new JMeterVariables());
-        threadVars = jmcx.getVariables();        
+        threadVars = jmcx.getVariables();
         config.setRandomSeed("abcd");
         config.setVariableName(RANDOM_VAR_NAME);
-
     }
 
     @After
     public void tearDown() throws IOException{
     }
-    
+
     @Test
     public void testRandom() throws Exception {
         config.setMinimumValue(MIN_VALUE);
@@ -66,11 +65,11 @@ public class TestRandomVariableConfig ex
             String value = threadVars.get(RANDOM_VAR_NAME);
             Assert.assertNotNull(threadVars.get(RANDOM_VAR_NAME));
             int numericValue = Integer.parseInt(value);
-            Assert.assertTrue("value:"+numericValue+" is not in range ["+MIN_VALUE+","+MAX_VALUE+"]",

-                    numericValue >=0 && numericValue <=10);            
+            Assert.assertTrue("value:" + numericValue + " is not in range [" + MIN_VALUE
+ "," + MAX_VALUE + "]",
+                    numericValue >= 0 && numericValue <= 10);
         }
     }
-    
+
     @Test
     public void testRandomWithFormat() throws Exception {
         config.setMinimumValue(MAX_VALUE);
@@ -82,7 +81,7 @@ public class TestRandomVariableConfig ex
         Assert.assertEquals("010.00", value);
 
     }
-    
+
     @Test
     public void testInvalidRange() throws Exception {
         config.setMinimumValue(MAX_VALUE);



Mime
View raw message