new-integration-tests/src/test/java/oracle/weblogic/kubernetes/ItMonitoringExporter.java
public static boolean execCommandCheckResponse(String cmd, String searchKey) {
    CommandParams params = Command
        .defaultCommandParams()
        .command(cmd)
        .saveResults(true)
        .redirect(false)
        .verbose(true);
    return Command.withParams(params).executeAndVerify(searchKey);
  }
/**
   * Check output of the command against expected output.
   *
   * @param cmd command
   * @param searchKey expected response from the command
   * @return true if the command succeeds
   */
Check output of the command against expected output.
@param cmd command
@param searchKey expected response from the command
@return true if the command succeeds
Check output of the command against expected output . @param cmd command @param searchKey expected response from the command @return true if the command succeeds
public static boolean execCommandCheckResponse(String cmd, String searchKey) {
    CommandParams params = Command
        .defaultCommandParams()
        .command(cmd)
        .saveResults(true)
        .redirect(false)
        .verbose(true);
    return Command.withParams(params).executeAndVerify(searchKey);
  }
public static boolean execCommandCheckResponse ( String cmd , String searchKey ) { CommandParams params = Command . defaultCommandParams ( ) . command ( cmd ) . saveResults ( true ) . redirect ( false ) . verbose ( true ) ; return Command . withParams ( params ) . executeAndVerify ( searchKey ) ; }
Check output of the command against expected output.
Check output of the command against expected output .