Package com.lazerycode.jmeter.utility
Class UtilityFunctions
- java.lang.Object
-
- com.lazerycode.jmeter.utility.UtilityFunctions
-
public final class UtilityFunctions extends Object
Series of useful utility functions to make life easy- Author:
- Mark Collin
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringhumanReadableCommandLineOutput(List<String> arguments)Build a human readable command line from the arguments set by the pluginstatic BooleanisNotSet(File value)Utility function to check if File is defined and not emptystatic BooleanisNotSet(String value)Utility function to check if a String is defined and not emptystatic BooleanisNotSet(List<?> value)Utility function to check if a List is defined and not emptystatic BooleanisNotSet(Map<?,?> value)Utility function to check if a Map is defined and not emptystatic BooleanisSet(String value)Utility function to check if a String is defined and not emptystatic StringstripCarriageReturns(String value)Utility function to strip carriage returns out of a String
-
-
-
Method Detail
-
humanReadableCommandLineOutput
public static String humanReadableCommandLineOutput(List<String> arguments)
Build a human readable command line from the arguments set by the plugin- Parameters:
arguments- Array of String- Returns:
- String
-
stripCarriageReturns
public static String stripCarriageReturns(String value)
Utility function to strip carriage returns out of a String- Parameters:
value- String- Returns:
- String
-
isNotSet
public static Boolean isNotSet(Map<?,?> value)
Utility function to check if a Map is defined and not empty- Parameters:
value- Map- Returns:
- boolean
-
isNotSet
public static Boolean isNotSet(List<?> value)
Utility function to check if a List is defined and not empty- Parameters:
value- List- Returns:
- boolean
-
isNotSet
public static Boolean isNotSet(String value)
Utility function to check if a String is defined and not empty- Parameters:
value- String- Returns:
- boolean
-
isSet
public static Boolean isSet(String value)
Utility function to check if a String is defined and not empty- Parameters:
value- String- Returns:
- boolean
-
-