StringOutput

trait StringOutput extends Output

Mock implementation of the Output trait to gather messages.

Mock implementation of the Output trait to gather messages.

!! This implementation is mutable, so it is not thread-safe !!

trait Output
class Object
trait Matchable
class Any

Value members

Concrete methods

protected def append(msg: String): Unit
def clear(): Unit
def messages: List[String]
Returns

the list of stored messages

def output: String
Returns

the output as one string

override def printf(s: String, args: Any*): Unit

if a message is printed with a newline it is considered as being a new message otherwise it is added to the last message

if a message is printed with a newline it is considered as being a new message otherwise it is added to the last message

Definition Classes

Inherited methods

def flush(): Unit

flush the content if necessary

flush the content if necessary

Inherited from
Output
def printStackTrace(t: Throwable): Unit

print stacktraces

print stacktraces

Inherited from
Output
def println(m: Any): Unit

print an object with a newline

print an object with a newline

Inherited from
Output