public class RemoteLogDumper
extends org.junit.rules.TestWatcher
public class LoginTestIT { @Rule public TestRule logDumper = new RemoteLogDumper(); @Test public void remoteLogin() { //Make calls to remote server assertEquals("testA", name.getMethodName()); } }
Modifier and Type | Field and Description |
---|---|
static String |
TEST_CLASS |
static String |
TEST_NAME |
Constructor and Description |
---|
RemoteLogDumper() |
Modifier and Type | Method and Description |
---|---|
protected void |
failed(Throwable e,
org.junit.runner.Description description) |
protected void |
finished(org.junit.runner.Description description) |
protected void |
starting(org.junit.runner.Description description) |
public static final String TEST_CLASS
public static final String TEST_NAME
protected void finished(org.junit.runner.Description description)
finished
in class org.junit.rules.TestWatcher
protected void starting(org.junit.runner.Description description)
starting
in class org.junit.rules.TestWatcher
protected void failed(Throwable e, org.junit.runner.Description description)
failed
in class org.junit.rules.TestWatcher
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.