Class Validate
java.lang.Object
org.jboss.arquillian.drone.webdriver.utils.Validate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanstatic booleanexecutable(String path) static booleanisCommandExecutable(String command) Find the executable by scanning the file system and the PATH.static voidstatic voidstatic voidisExecutable(String path, String message) static voidisValidPath(String path, String message) static voidisValidUrl(String url, String message) static voidisValidUrl(URL url, String message) static boolean
-
Constructor Details
-
Validate
public Validate()
-
-
Method Details
-
empty
-
empty
-
nonEmpty
-
isEmpty
- Throws:
IllegalArgumentException
-
isEmpty
- Throws:
IllegalArgumentException
-
isValidPath
- Throws:
IllegalArgumentException
-
isValidUrl
- Throws:
IllegalArgumentException
-
isValidUrl
- Throws:
IllegalArgumentException
-
isExecutable
- Throws:
IllegalArgumentException
-
isCommandExecutable
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
-