mirror of https://github.com/apache/jmeter.git
				
				
				
			
							parent
							
								
									5df97b8a67
								
							
						
					
					
						commit
						beb5e69165
					
				| 
						 | 
				
			
			@ -17,6 +17,8 @@
 | 
			
		|||
 | 
			
		||||
package org.apache.jmeter.junit;
 | 
			
		||||
 | 
			
		||||
import static org.junit.jupiter.api.Assertions.assertThrows;
 | 
			
		||||
 | 
			
		||||
import java.io.File;
 | 
			
		||||
import java.nio.charset.Charset;
 | 
			
		||||
import java.util.Collection;
 | 
			
		||||
| 
						 | 
				
			
			@ -110,12 +112,7 @@ public abstract class JMeterTestCaseJUnit extends TestCase {
 | 
			
		|||
            throws Exception {
 | 
			
		||||
        Collection<CompoundVariable> parms = new LinkedList<>();
 | 
			
		||||
        for (int c = 0; c < minimum; c++) {
 | 
			
		||||
            try {
 | 
			
		||||
                func.setParameters(parms);
 | 
			
		||||
                fail("Should have generated InvalidVariableException for " + parms.size()
 | 
			
		||||
                        + " parameters");
 | 
			
		||||
            } catch (InvalidVariableException ignored) {
 | 
			
		||||
            }
 | 
			
		||||
            assertThrows(InvalidVariableException.class, () -> func.setParameters(parms));
 | 
			
		||||
            parms.add(new CompoundVariable());
 | 
			
		||||
        }
 | 
			
		||||
        func.setParameters(parms);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue