public InputActionBuilder answers ( String ... answers ) { if ( answers . length == 0 ) { throw new CitrusRuntimeException ( "Please specify proper answer possibilities for input action" ) ; } StringBuilder validAnswers = new StringBuilder ( ) ; for ( String answer : answers ) { validAnswers . append ( InputAction . ANSWER_SEPARATOR ) ; validAnswers . append ( answer ) ; } action . setValidAnswers ( validAnswers . toString ( ) . substring ( 1 ) ) ; return this ; }
Sets the valid answers .