Reader-Self not relevant, removing

This commit is contained in:
Joakim Erdfelt 2017-06-20 09:55:21 -07:00
parent 579b99c2c9
commit 8d18118688
1 changed files with 0 additions and 27 deletions

View File

@ -21,7 +21,6 @@ package org.eclipse.jetty.websocket.tests.server.jsr356;
import java.io.IOException;
import java.io.Reader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.websocket.OnError;
@ -39,12 +38,10 @@ import org.eclipse.jetty.websocket.common.WebSocketFrame;
import org.eclipse.jetty.websocket.common.frames.TextFrame;
import org.eclipse.jetty.websocket.jsr356.server.ServerContainer;
import org.eclipse.jetty.websocket.jsr356.server.deploy.WebSocketServerContainerInitializer;
import org.eclipse.jetty.websocket.tests.DataUtils;
import org.eclipse.jetty.websocket.tests.LocalFuzzer;
import org.eclipse.jetty.websocket.tests.LocalServer;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
/**
@ -133,30 +130,6 @@ public class ReaderEchoTest
}
}
@Test
@Ignore("TODO: Need Encoder for Writer?")
public void testReaderSelfSocket() throws Exception
{
String requestPath = "/echo/reader-self";
byte data[] = new byte[1024 * 1024];
Arrays.fill(data, (byte) 'x');
List<WebSocketFrame> send = new ArrayList<>();
send.add(new TextFrame().setPayload(DataUtils.copyOf(data)));
send.add(new CloseInfo(StatusCode.NORMAL).asFrame());
List<WebSocketFrame> expect = new ArrayList<>();
expect.add(new TextFrame().setPayload(DataUtils.copyOf(data)));
expect.add(new CloseInfo(StatusCode.NORMAL).asFrame());
try (LocalFuzzer session = server.newLocalFuzzer(requestPath))
{
session.sendBulk(send);
session.expect(expect);
}
}
@Test
public void testReaderParamSocket() throws Exception
{