Added test method rule.
This commit is contained in:
parent
d79b511507
commit
4cbca7a664
|
@ -12,9 +12,24 @@ import org.eclipse.jetty.util.ssl.SslContextFactory;
|
||||||
import org.eclipse.jetty.util.thread.QueuedThreadPool;
|
import org.eclipse.jetty.util.thread.QueuedThreadPool;
|
||||||
import org.eclipse.jetty.util.thread.ThreadPool;
|
import org.eclipse.jetty.util.thread.ThreadPool;
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
|
import org.junit.Rule;
|
||||||
|
import org.junit.rules.TestWatchman;
|
||||||
|
import org.junit.runners.model.FrameworkMethod;
|
||||||
|
|
||||||
public abstract class SPDYTest
|
public abstract class SPDYTest
|
||||||
{
|
{
|
||||||
|
@Rule
|
||||||
|
public final TestWatchman testName = new TestWatchman()
|
||||||
|
{
|
||||||
|
@Override
|
||||||
|
public void starting(FrameworkMethod method)
|
||||||
|
{
|
||||||
|
super.starting(method);
|
||||||
|
System.err.printf("Running %s.%s()%n",
|
||||||
|
method.getMethod().getDeclaringClass().getName(),
|
||||||
|
method.getName());
|
||||||
|
}
|
||||||
|
};
|
||||||
private Server server;
|
private Server server;
|
||||||
private SPDYClient.Factory clientFactory;
|
private SPDYClient.Factory clientFactory;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue