Class MockTextTerminal

    • Constructor Detail

      • MockTextTerminal

        public MockTextTerminal()
    • Method Detail

      • read

        public java.lang.String read​(boolean masking)
        Description copied from interface: TextTerminal
        Reads a line of text
        Parameters:
        masking - true, if the input should be masked (for example to enter a password)
        Returns:
        the entered text
      • rawPrint

        public void rawPrint​(java.lang.String message)
        Description copied from interface: TextTerminal
        Prints the message in its raw form. This method expects a single line of text. The behavior is undefined if the string contains line separators.
      • println

        public void println()
        Description copied from interface: TextTerminal
        Terminates the current line by writing the line separator string.
      • getInputs

        public java.util.List<java.lang.String> getInputs()
      • getOutput

        public java.lang.String getOutput()
      • getReadCalls

        public int getReadCalls()
      • getMaxReads

        public int getMaxReads()
      • setMaxReads

        public void setMaxReads​(int maxReads)
      • stripAll

        public static java.lang.String stripAll​(java.lang.String text)