com.lazerycode.jmeter
Class UtilityFunctions

java.lang.Object
  extended by com.lazerycode.jmeter.UtilityFunctions

public final class UtilityFunctions
extends Object

Series of useful utility functions to make life easy

Author:
Mark Collin

Method Summary
static List<String> getThreadNames(boolean ofTypeGUI)
          Get a list of thread names to wait upon
static String humanReadableCommandLineOutput(String[] arguments)
          Build a human readable command line from the arguments set by the plugin
static Boolean isNotSet(File value)
          Utility function to check if File is defined and not empty
static Boolean isNotSet(Map<?,?> value)
          Utility function to check if a Map is defined and not empty
static Boolean isNotSet(String value)
          Utility function to check if a String is defined and not empty
static Boolean isSet(String value)
          Utility function to check if a String is defined and not empty
static String stripCarriageReturns(String value)
          Utility function to strip carriage returns out of a String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

humanReadableCommandLineOutput

public static String humanReadableCommandLineOutput(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(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

isNotSet

public static Boolean isNotSet(File value)
Utility function to check if File is defined and not empty

Parameters:
value - File
Returns:
boolean

getThreadNames

public static List<String> getThreadNames(boolean ofTypeGUI)
Get a list of thread names to wait upon

Parameters:
ofTypeGUI - look for GUI threads (false implies non-GUI threads)
Returns:
the list of thread names to wait upon


Copyright © 2013. All Rights Reserved.