public final class PrintTestNameWatcher extends Object implements org.junit.rules.TestRule
TestRule que imprime o nome de cada caso de teste em um stream de saída.| Modifier and Type | Field and Description |
|---|---|
static String |
FORMATO_MENSAGEM_PADRAO
Formato padrão para mensagens exibindo o nome do teste.
|
| Constructor and Description |
|---|
PrintTestNameWatcher() |
PrintTestNameWatcher(String formatoMensagem) |
PrintTestNameWatcher(String formatoMensagem,
PrintStream stream)
Cria uma nova regra de impressão de nome de testes utilizando o formato informado e direcionando as mensagens para o stream de saída.
|
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement statement,
org.junit.runner.Description description) |
String |
getFormatoMensagem() |
PrintStream |
getStream() |
public static final String FORMATO_MENSAGEM_PADRAO
public PrintTestNameWatcher(String formatoMensagem, PrintStream stream)
formatoMensagem - o formato das mensagens contendo o nome dos testesstream - stream de saída de dadosNullPointerException - caso stream seja nullpublic PrintTestNameWatcher(String formatoMensagem)
public PrintTestNameWatcher()
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement statement,
org.junit.runner.Description description)
apply in interface org.junit.rules.TestRulepublic PrintStream getStream()
public String getFormatoMensagem()
Copyright © 2016–2019 Tribunal Superior do Trabalho. All rights reserved.