StringOutput

org.specs2.io.StringOutput
trait StringOutput extends Output

Mock implementation of the Output trait to gather messages.

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

Attributes

Graph
Supertypes
trait Output
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

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

Attributes

Returns

the list of stored messages

def output: String

Attributes

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

Attributes

Definition Classes

Inherited methods

def flush(): Unit

flush the content if necessary

flush the content if necessary

Attributes

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

print stacktraces

print stacktraces

Attributes

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

print an object with a newline

print an object with a newline

Attributes

Inherited from:
Output