Class Validate
- java.lang.Object
-
- org.jboss.arquillian.drone.webdriver.utils.Validate
-
public class Validate extends Object
-
-
Constructor Summary
Constructors Constructor Description Validate()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanempty(Object object)static booleanempty(String object)static booleanexecutable(String path)static booleanisCommandExecutable(String command)Find the executable by scanning the file system and the PATH.static voidisEmpty(Object object, String message)static voidisEmpty(String object, String message)static voidisExecutable(String path, String message)static voidisValidPath(String path, String message)static voidisValidUrl(String url, String message)static voidisValidUrl(URL url, String message)static booleannonEmpty(String object)
-
-
-
Method Detail
-
empty
public static boolean empty(Object object)
-
empty
public static boolean empty(String object)
-
nonEmpty
public static boolean nonEmpty(String object)
-
isEmpty
public static void isEmpty(Object object, String message) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
isEmpty
public static void isEmpty(String object, String message) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
isValidPath
public static void isValidPath(String path, String message) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
isValidUrl
public static void isValidUrl(URL url, String message) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
isValidUrl
public static void isValidUrl(String url, String message) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
isExecutable
public static void isExecutable(String path, String message) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
isCommandExecutable
public static boolean isCommandExecutable(String command) throws IllegalArgumentException
Find the executable by scanning the file system and the PATH. In the case of Windows this method allows common executable endings (".com", ".bat" and ".exe") to be omitted.- Parameters:
command- The name of the executable to find- Returns:
- Whether the command is executable or not.
- Throws:
IllegalArgumentException
-
executable
public static boolean executable(String path)
-
-