public class TestLogger
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
METHOD_LEVEL
1 Level Indentation for test methods
|
static int |
ROOT_LEVEL
No Indentation
|
static int |
STEP_LEVEL
2 Level Indentation for test steps in methods
|
| Constructor and Description |
|---|
TestLogger() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(java.lang.String entry)
adds the String to the list considering the indentation
|
void |
addChildLevel(java.lang.String describe)
Adds a describing line to the output and increases indentation afterwards
|
void |
addEmptyLine()
Add an empty line to the log.
|
void |
addSiblingLevel(java.lang.String describe)
Unindents, adds a describing line to the output and increases indentation
afterwards
|
void |
appendToLastEntry(java.lang.String string)
append text to the last entry.
|
void |
indent()
increase indentation
|
void |
reset()
Delete all entries.
|
void |
setIndentLevel(int lvl)
set specific indentation level.
|
void |
sysout()
Prints all log entries to .
|
void |
unIndent()
decrease indentation
|
public static final int ROOT_LEVEL
public static final int METHOD_LEVEL
public static final int STEP_LEVEL
public boolean add(java.lang.String entry)
entry - element to be appended to this listpublic void addChildLevel(java.lang.String describe)
describe - describing linepublic void addSiblingLevel(java.lang.String describe)
describe - describing linepublic void indent()
public void unIndent()
public void setIndentLevel(int lvl)
lvl - Level of indentationpublic void sysout()
public void appendToLastEntry(java.lang.String string)
string - text to appendpublic void addEmptyLine()
public void reset()
Copyright © 2018 SAP SE. All Rights Reserved.