Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Becker2012-07-27 13:51:14 +0000
committerThomas Becker2012-07-27 13:51:14 +0000
commitb36a6cc9ccf28eea4a2e084e5972ca6f0a81dd4f (patch)
tree37f8cacaa6d89527e4bffd07b32b4a9d1cbe0f9a /jetty-spdy/spdy-jetty/src/test/java/org/eclipse/jetty/spdy/PingTest.java
parentfbcb14f2974dd8d2f2eaf45089306329771bf4c3 (diff)
downloadorg.eclipse.jetty.project-b36a6cc9ccf28eea4a2e084e5972ca6f0a81dd4f.tar.gz
org.eclipse.jetty.project-b36a6cc9ccf28eea4a2e084e5972ca6f0a81dd4f.tar.xz
org.eclipse.jetty.project-b36a6cc9ccf28eea4a2e084e5972ca6f0a81dd4f.zip
jetty-9 checkout jetty-spdy from jetty-8
Diffstat (limited to 'jetty-spdy/spdy-jetty/src/test/java/org/eclipse/jetty/spdy/PingTest.java')
-rw-r--r--jetty-spdy/spdy-jetty/src/test/java/org/eclipse/jetty/spdy/PingTest.java32
1 files changed, 15 insertions, 17 deletions
diff --git a/jetty-spdy/spdy-jetty/src/test/java/org/eclipse/jetty/spdy/PingTest.java b/jetty-spdy/spdy-jetty/src/test/java/org/eclipse/jetty/spdy/PingTest.java
index 63691bdfcc..9229e7e883 100644
--- a/jetty-spdy/spdy-jetty/src/test/java/org/eclipse/jetty/spdy/PingTest.java
+++ b/jetty-spdy/spdy-jetty/src/test/java/org/eclipse/jetty/spdy/PingTest.java
@@ -1,18 +1,16 @@
-/*
- * Copyright (c) 2012 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
+//========================================================================
+//Copyright 2011-2012 Mort Bay Consulting Pty. Ltd.
+//------------------------------------------------------------------------
+//All rights reserved. This program and the accompanying materials
+//are made available under the terms of the Eclipse Public License v1.0
+//and Apache License v2.0 which accompanies this distribution.
+//The Eclipse Public License is available at
+//http://www.eclipse.org/legal/epl-v10.html
+//The Apache License v2.0 is available at
+//http://www.opensource.org/licenses/apache2.0.php
+//You may elect to redistribute this code under either of these licenses.
+//========================================================================
+
package org.eclipse.jetty.spdy;
@@ -20,11 +18,11 @@ import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicReference;
+import org.eclipse.jetty.spdy.api.Handler;
import org.eclipse.jetty.spdy.api.PingInfo;
import org.eclipse.jetty.spdy.api.Session;
import org.eclipse.jetty.spdy.api.SessionFrameListener;
import org.eclipse.jetty.spdy.api.server.ServerSessionFrameListener;
-import org.eclipse.jetty.util.Callback;
import org.junit.Assert;
import org.junit.Test;
@@ -65,7 +63,7 @@ public class PingTest extends AbstractTest
@Override
public void onConnect(Session session)
{
- session.ping(0, TimeUnit.MILLISECONDS, new Callback.Adapter<PingInfo>()
+ session.ping(0, TimeUnit.MILLISECONDS, new Handler.Adapter<PingInfo>()
{
@Override
public void completed(PingInfo pingInfo)

Back to the top