Class CliCommandUtil


  • public final class CliCommandUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private CliCommandUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isVersionCommandExecutable​(java.lang.String command, java.lang.String versionText)
      Checks if the command, passed as parameter, is executable and the output version text contains expected text
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CliCommandUtil

        private CliCommandUtil()
    • Method Detail

      • isVersionCommandExecutable

        public static boolean isVersionCommandExecutable​(java.lang.String command,
                                                         java.lang.String versionText)
        Checks if the command, passed as parameter, is executable and the output version text contains expected text
        Parameters:
        command - a string command to execute
        versionText - an expected version text line
        Returns:
        boolean result of checking: true - the required command is executable and the output version text is correct