public abstract class MessageSpec.TestSetup
extends java.lang.Object
Constructor and Description |
---|
TestSetup() |
Modifier and Type | Method and Description |
---|---|
protected scala.concurrent.duration.FiniteDuration |
closeTimeout() |
BinaryMessage |
expectBinaryMessage() |
void |
expectBinaryMessage(BinaryMessage message) |
void |
expectCloseCodeOnNetwork(int expectedCode) |
<T> void |
expectComplete(org.apache.pekko.stream.testkit.TestSubscriber.Probe<T> probe) |
<T> java.lang.Throwable |
expectError(org.apache.pekko.stream.testkit.TestSubscriber.Probe<T> probe) |
scala.Tuple4<Protocol.Opcode,java.lang.Object,java.lang.Object,scala.Option<java.lang.Object>> |
expectFrameHeaderOnNetwork() |
scala.Option<java.lang.Object> |
expectFrameHeaderOnNetwork(Protocol.Opcode opcode,
long length,
boolean fin)
Returns the mask if any is available
|
void |
expectFrameOnNetwork(Protocol.Opcode opcode,
org.apache.pekko.util.ByteString data,
boolean fin) |
void |
expectMaskedFrameOnNetwork(Protocol.Opcode opcode,
org.apache.pekko.util.ByteString data,
boolean fin) |
Message |
expectMessage() |
void |
expectMessage(Message message) |
void |
expectNetworkData(org.apache.pekko.util.ByteString data) |
org.apache.pekko.util.ByteString |
expectNetworkData(int bytes) |
void |
expectNoNetworkData() |
void |
expectProtocolErrorOnNetwork() |
TextMessage |
expectTextMessage() |
void |
expectTextMessage(TextMessage message) |
org.apache.pekko.stream.scaladsl.Flow<Message,Message,org.apache.pekko.NotUsed> |
messageHandler() |
org.apache.pekko.stream.testkit.TestSubscriber.Probe<Message> |
messageIn() |
org.apache.pekko.stream.testkit.TestPublisher.Probe<Message> |
messageOut() |
org.apache.pekko.stream.testkit.TestPublisher.Probe<org.apache.pekko.util.ByteString> |
netIn() |
ByteStringSinkProbe |
netOut() |
void |
pushInput(org.apache.pekko.util.ByteString data) |
void |
pushMessage(Message msg) |
protected abstract boolean |
serverSide() |
protected WebSocketSettings |
websocketSettings() |
protected scala.concurrent.duration.FiniteDuration closeTimeout()
public void expectBinaryMessage(BinaryMessage message)
public BinaryMessage expectBinaryMessage()
public void expectCloseCodeOnNetwork(int expectedCode)
public <T> void expectComplete(org.apache.pekko.stream.testkit.TestSubscriber.Probe<T> probe)
public <T> java.lang.Throwable expectError(org.apache.pekko.stream.testkit.TestSubscriber.Probe<T> probe)
public scala.Option<java.lang.Object> expectFrameHeaderOnNetwork(Protocol.Opcode opcode, long length, boolean fin)
public scala.Tuple4<Protocol.Opcode,java.lang.Object,java.lang.Object,scala.Option<java.lang.Object>> expectFrameHeaderOnNetwork()
public void expectFrameOnNetwork(Protocol.Opcode opcode, org.apache.pekko.util.ByteString data, boolean fin)
public void expectMaskedFrameOnNetwork(Protocol.Opcode opcode, org.apache.pekko.util.ByteString data, boolean fin)
public void expectMessage(Message message)
public Message expectMessage()
public void expectNetworkData(org.apache.pekko.util.ByteString data)
public final org.apache.pekko.util.ByteString expectNetworkData(int bytes)
public void expectNoNetworkData()
public void expectProtocolErrorOnNetwork()
public void expectTextMessage(TextMessage message)
public TextMessage expectTextMessage()
public org.apache.pekko.stream.scaladsl.Flow<Message,Message,org.apache.pekko.NotUsed> messageHandler()
public org.apache.pekko.stream.testkit.TestSubscriber.Probe<Message> messageIn()
public org.apache.pekko.stream.testkit.TestPublisher.Probe<Message> messageOut()
public org.apache.pekko.stream.testkit.TestPublisher.Probe<org.apache.pekko.util.ByteString> netIn()
public ByteStringSinkProbe netOut()
public void pushInput(org.apache.pekko.util.ByteString data)
public void pushMessage(Message msg)
protected abstract boolean serverSide()
protected WebSocketSettings websocketSettings()