Class AzurePartitionBinderTests<B extends org.springframework.cloud.stream.binder.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>
- java.lang.Object
-
- org.springframework.cloud.stream.binder.AbstractBinderTests<B,CP,PP>
-
- org.springframework.cloud.stream.binder.PartitionCapableBinderTests<B,CP,PP>
-
- com.azure.spring.servicebus.stream.binder.test.AzurePartitionBinderTests<B,CP,PP>
-
- Type Parameters:
B
- binder typeCP
- consumer properties typePP
- producer properties type
public abstract class AzurePartitionBinderTests<B extends org.springframework.cloud.stream.binder.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 org.springframework.cloud.stream.binder.PartitionCapableBinderTests<B,CP,PP>
Abstract Azure class that adds test support forBinder
.
-
-
Constructor Summary
Constructors Constructor Description AzurePartitionBinderTests()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
enableTests()
Execute necessary operations to enable tests.org.springframework.cloud.stream.binder.Spy
spyOn(String name)
void
testAnonymousGroup(org.junit.jupiter.api.TestInfo testInfo)
void
testClean(org.junit.jupiter.api.TestInfo testInfo)
void
testPartitionedModuleSpEL(org.junit.jupiter.api.TestInfo testInfo)
void
testSendAndReceiveNoOriginalContentType(org.junit.jupiter.api.TestInfo testInfo)
protected boolean
usesExplicitRouting()
-
Methods inherited from class org.springframework.cloud.stream.binder.PartitionCapableBinderTests
checkRkExpressionForPartitionedModuleSpEL, extractEndpoint, getClassUnderTestName, getEndpointRouting, getExpectedRoutingBaseDestination, testOneRequiredGroup, testTwoRequiredGroups
-
Methods inherited from class org.springframework.cloud.stream.binder.AbstractBinderTests
before, binderBindUnbindLatency, cleanup, createBindableChannel, createBindableChannel, createBindableMessageSource, createConsumerBindingProperties, createConsumerProperties, createProducerBindingProperties, createProducerProperties, getBinder, getDestinationNameDelimiter, receive, receive, testSendAndReceive, testSendAndReceiveMultipleTopics, testSendJsonReceiveJsonWithStreamListener, testSendJsonReceivePojoWithStreamListener, testSendPojoReceivePojoWithStreamListener, testSendPojoReceivePojoWithStreamListenerDefaultContentType
-
-
-
-
Method Detail
-
enableTests
@BeforeAll public static void enableTests()
Execute necessary operations to enable tests.
-
usesExplicitRouting
protected boolean usesExplicitRouting()
- Specified by:
usesExplicitRouting
in classorg.springframework.cloud.stream.binder.PartitionCapableBinderTests<B extends org.springframework.cloud.stream.binder.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>
-
spyOn
public org.springframework.cloud.stream.binder.Spy spyOn(String name)
- Specified by:
spyOn
in classorg.springframework.cloud.stream.binder.AbstractBinderTests<B extends org.springframework.cloud.stream.binder.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>
-
testClean
public void testClean(org.junit.jupiter.api.TestInfo testInfo) throws Exception
- Overrides:
testClean
in classorg.springframework.cloud.stream.binder.AbstractBinderTests<B extends org.springframework.cloud.stream.binder.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>
- Throws:
Exception
-
testPartitionedModuleSpEL
public void testPartitionedModuleSpEL(org.junit.jupiter.api.TestInfo testInfo)
- Overrides:
testPartitionedModuleSpEL
in classorg.springframework.cloud.stream.binder.PartitionCapableBinderTests<B extends org.springframework.cloud.stream.binder.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>
-
testAnonymousGroup
public void testAnonymousGroup(org.junit.jupiter.api.TestInfo testInfo)
- Overrides:
testAnonymousGroup
in classorg.springframework.cloud.stream.binder.PartitionCapableBinderTests<B extends org.springframework.cloud.stream.binder.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>
-
testSendAndReceiveNoOriginalContentType
public void testSendAndReceiveNoOriginalContentType(org.junit.jupiter.api.TestInfo testInfo) throws Exception
- Overrides:
testSendAndReceiveNoOriginalContentType
in classorg.springframework.cloud.stream.binder.AbstractBinderTests<B extends org.springframework.cloud.stream.binder.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>
- Throws:
Exception
-
-