Class Command

java.lang.Object
org.gradle.exemplar.model.Command

public class Command extends Object
  • Constructor Details

    • Command

      public Command(@Nonnull String executable, @Nullable String executionDirectory, List<String> args, List<String> flags, @Nullable String expectedOutput, boolean expectFailure, boolean allowAdditionalOutput, boolean allowDisorderedOutput, List<String> userInputs)
  • Method Details

    • getExecutable

      @Nonnull public String getExecutable()
    • getExecutionSubdirectory

      @Nullable public String getExecutionSubdirectory()
    • getArgs

      public List<String> getArgs()
    • getFlags

      public List<String> getFlags()
    • getExpectedOutput

      @Nullable public String getExpectedOutput()
    • isExpectFailure

      public boolean isExpectFailure()
      Returns:
      true if executing the scenario build is expected to fail.
    • isAllowAdditionalOutput

      public boolean isAllowAdditionalOutput()
      Returns:
      true if output lines other than those provided are allowed.
    • isAllowDisorderedOutput

      public boolean isAllowDisorderedOutput()
      Returns:
      true if actual output lines can differ in order from expected.
    • getUserInputs

      public List<String> getUserInputs()
      Returns:
      a list of user inputs to provide to the command
    • toBuilder

      public Command.Builder toBuilder()