cuke4duke
Interface StepMother


public interface StepMother


Method Summary
 void announce(String message)
          Output a message alongside the formatted output.
 String ask(String question, int timeoutSecs)
          Suspends execution and asks for input.
 void embed(String file, String mimeType)
          Embed a file in the formatter outputs.
 void invoke(String step)
           
 void invoke(String step, String multilineString)
           
 void invoke(String step, Table table)
           
 

Method Detail

invoke

void invoke(String step)

invoke

void invoke(String step,
            Table table)

invoke

void invoke(String step,
            String multilineString)

ask

String ask(String question,
           int timeoutSecs)
Suspends execution and asks for input. This is known to work witn Ant, but not with Maven, which seems to mess up STDIN.

Parameters:
question - a question to print to the console
timeoutSecs - number of seconds to wait before a timeout exception occurs.
Returns:
the line of text that the user wrote.

announce

void announce(String message)
Output a message alongside the formatted output. This is an alternative to using System.out.println - it will display nicer, and in all outputs (in case you use several formatters)

Parameters:
message - what to print.

embed

void embed(String file,
           String mimeType)
Embed a file in the formatter outputs. This may or may not be ignored, depending on what kind of formatter(s) are active.



Copyright © 2010. All Rights Reserved.