aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Becker2012-10-02 06:12:33 (EDT)
committerThomas Becker2012-10-02 06:12:33 (EDT)
commitef2939b86ca2d8d85885975a9f2c59f6947c317b (patch)
treee5ff9037ff2fbce7324049e7cbbb51b82fae50be
parent28bb21eaf41a4d55e52677d256c9395c8c238723 (diff)
downloadorg.eclipse.jetty.project-ef2939b86ca2d8d85885975a9f2c59f6947c317b.zip
org.eclipse.jetty.project-ef2939b86ca2d8d85885975a9f2c59f6947c317b.tar.gz
org.eclipse.jetty.project-ef2939b86ca2d8d85885975a9f2c59f6947c317b.tar.bz2
jetty-9: AbstractTest replace deprecated TestWatchmen with TestWatcher
-rw-r--r--jetty-spdy/spdy-server/src/test/java/org/eclipse/jetty/spdy/server/AbstractTest.java15
1 files changed, 8 insertions, 7 deletions
diff --git a/jetty-spdy/spdy-server/src/test/java/org/eclipse/jetty/spdy/server/AbstractTest.java b/jetty-spdy/spdy-server/src/test/java/org/eclipse/jetty/spdy/server/AbstractTest.java
index fa32ce7..f6ccc38 100644
--- a/jetty-spdy/spdy-server/src/test/java/org/eclipse/jetty/spdy/server/AbstractTest.java
+++ b/jetty-spdy/spdy-server/src/test/java/org/eclipse/jetty/spdy/server/AbstractTest.java
@@ -34,21 +34,22 @@ import org.eclipse.jetty.util.ssl.SslContextFactory;
import org.eclipse.jetty.util.thread.QueuedThreadPool;
import org.junit.After;
import org.junit.Rule;
-import org.junit.rules.TestWatchman;
-import org.junit.runners.model.FrameworkMethod;
+import org.junit.rules.TestWatcher;
+import org.junit.runner.Description;
public abstract class AbstractTest
{
@Rule
- public final TestWatchman testName = new TestWatchman()
+ public final TestWatcher testName = new TestWatcher()
{
+
@Override
- public void starting(FrameworkMethod method)
+ public void starting(Description description)
{
- super.starting(method);
+ super.starting(description);
System.err.printf("Running %s.%s()%n",
- method.getMethod().getDeclaringClass().getName(),
- method.getName());
+ description.getClassName(),
+ description.getMethodName());
}
};