public abstract class PartitionCapableBinderTests<B extends AbstractTestBinder<? extends org.springframework.cloud.stream.binder.AbstractBinder<org.springframework.messaging.MessageChannel,CP,PP>,CP,PP>,CP extends org.springframework.cloud.stream.binder.ConsumerProperties,PP extends org.springframework.cloud.stream.binder.ProducerProperties> extends AbstractBinderTests<B,CP,PP>
AbstractBinderTests.Station| Modifier and Type | Field and Description |
|---|---|
protected static org.springframework.expression.spel.standard.SpelExpressionParser |
spelExpressionParser |
logger, messageConverter, testBinder, timeoutMultiplier| Constructor and Description |
|---|
PartitionCapableBinderTests() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkRkExpressionForPartitionedModuleSpEL(Object endpoint) |
protected org.springframework.context.Lifecycle |
extractEndpoint(org.springframework.cloud.stream.binder.Binding<org.springframework.messaging.MessageChannel> binding) |
protected abstract String |
getClassUnderTestName() |
protected String |
getEndpointRouting(Object endpoint)
For implementations that rely on explicit routing, return the routing expression.
|
protected String |
getExpectedRoutingBaseDestination(String name,
String group)
For implementations that rely on explicit routing, return the expected base
destination (the part that precedes '-partition' within the expression).
|
void |
testAnonymousGroup() |
void |
testOneRequiredGroup() |
void |
testPartitionedModuleJava() |
void |
testPartitionedModuleSpEL() |
void |
testTwoRequiredGroups() |
protected abstract boolean |
usesExplicitRouting()
Implementations should return whether the binder under test uses "explicit" routing
(e.g.
|
before, binderBindUnbindLatency, cleanup, createBindableChannel, createBindableChannel, createBindableMessageSource, createConsumerBindingProperties, createConsumerProperties, createProducerBindingProperties, createProducerProperties, getBinder, getDestinationNameDelimiter, receive, receive, spyOn, testClean, testSendAndReceive, testSendAndReceiveJavaSerialization, testSendAndReceiveKryo, testSendAndReceiveMultipleTopics, testSendAndReceiveNoOriginalContentType, testSendJsonReceiveJsonWithStreamListener, testSendJsonReceivePojoWithStreamListener, testSendPojoReceivePojoKryoWithStreamListener, testSendPojoReceivePojoWithStreamListener, testSendPojoReceivePojoWithStreamListenerDefaultContentType, testStreamListenerJavaSerializationNonSerializableprotected static final org.springframework.expression.spel.standard.SpelExpressionParser spelExpressionParser
public void testPartitionedModuleSpEL()
throws Exception
Exceptionprotected void checkRkExpressionForPartitionedModuleSpEL(Object endpoint)
public void testPartitionedModuleJava()
throws Exception
Exceptionprotected abstract boolean usesExplicitRouting()
protected String getEndpointRouting(Object endpoint)
protected String getExpectedRoutingBaseDestination(String name, String group)
protected abstract String getClassUnderTestName()
protected org.springframework.context.Lifecycle extractEndpoint(org.springframework.cloud.stream.binder.Binding<org.springframework.messaging.MessageChannel> binding)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.