public abstract class SendOperationTest<O extends SendOperation> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
destination |
protected CompletableFuture<Void> |
future |
protected org.springframework.messaging.Message<?> |
message |
protected String |
partitionKey |
protected String |
payload |
protected O |
sendOperation |
| Constructor and Description |
|---|
SendOperationTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testSendCreateSenderFailure() |
void |
testSendFailure() |
void |
testSendWithoutPartition() |
void |
testSendWithoutPartitionSupplier() |
void |
testSendWithPartitionId() |
void |
testSendWithPartitionKey() |
protected abstract void |
verifyGetClientCreator(int times) |
protected abstract void |
verifyPartitionSenderCalled(int times) |
protected abstract void |
verifySendCalled(int times) |
protected abstract void |
verifySendWithPartitionId(int times) |
protected abstract void |
verifySendWithPartitionKey(int times) |
protected abstract void |
whenSendWithException() |
protected O extends SendOperation sendOperation
protected String payload
protected CompletableFuture<Void> future
protected String partitionKey
protected String destination
protected org.springframework.messaging.Message<?> message
public void testSendWithoutPartitionSupplier()
throws ExecutionException,
InterruptedException
public void testSendWithoutPartition()
throws ExecutionException,
InterruptedException
public void testSendWithPartitionId()
throws ExecutionException,
InterruptedException
public void testSendWithPartitionKey()
throws ExecutionException,
InterruptedException
public void testSendCreateSenderFailure()
throws Throwable
Throwablepublic void testSendFailure()
protected abstract void verifySendCalled(int times)
protected abstract void verifyPartitionSenderCalled(int times)
protected abstract void whenSendWithException()
protected abstract void verifyGetClientCreator(int times)
protected abstract void verifySendWithPartitionKey(int times)
protected abstract void verifySendWithPartitionId(int times)
Copyright © 2020 Microsoft. All rights reserved.