Start building against Spring Pulsar 1.1.0 snapshots
See gh-39898
This commit is contained in:
@@ -28,6 +28,7 @@ import org.apache.pulsar.client.api.ReaderBuilder;
|
||||
import org.apache.pulsar.client.api.interceptor.ProducerInterceptor;
|
||||
import org.apache.pulsar.common.schema.SchemaType;
|
||||
import org.assertj.core.api.InstanceOfAssertFactories;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Nested;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledForJreRange;
|
||||
@@ -284,20 +285,22 @@ class PulsarAutoConfigurationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Disabled("Changes in https://github.com/spring-projects/spring-pulsar/issues/593 prevent introspection of the interceptors")
|
||||
void whenHasUseDefinedProducerInterceptorInjectsBean() {
|
||||
ProducerInterceptor interceptor = mock(ProducerInterceptor.class);
|
||||
this.contextRunner.withBean("customProducerInterceptor", ProducerInterceptor.class, () -> interceptor)
|
||||
.run((context) -> assertThat(context).getBean(PulsarTemplate.class)
|
||||
.extracting("interceptors")
|
||||
.extracting("interceptorsCustomizers")
|
||||
.asInstanceOf(InstanceOfAssertFactories.LIST)
|
||||
.contains(interceptor));
|
||||
}
|
||||
|
||||
@Test
|
||||
@Disabled("Changes in https://github.com/spring-projects/spring-pulsar/issues/593 prevent introspection of the interceptors")
|
||||
void whenHasUseDefinedProducerInterceptorsInjectsBeansInCorrectOrder() {
|
||||
this.contextRunner.withUserConfiguration(InterceptorTestConfiguration.class)
|
||||
.run((context) -> assertThat(context).getBean(PulsarTemplate.class)
|
||||
.extracting("interceptors")
|
||||
.extracting("interceptorsCustomizers")
|
||||
.asInstanceOf(InstanceOfAssertFactories.LIST)
|
||||
.containsExactly(context.getBean("interceptorBar"), context.getBean("interceptorFoo")));
|
||||
}
|
||||
|
||||
@@ -1926,7 +1926,7 @@ bom {
|
||||
releaseNotes("https://github.com/spring-projects/spring-ldap/releases/tag/{version}")
|
||||
}
|
||||
}
|
||||
library("Spring Pulsar", "1.1.0-M1") {
|
||||
library("Spring Pulsar", "1.1.0-SNAPSHOT") {
|
||||
considerSnapshots()
|
||||
group("org.springframework.pulsar") {
|
||||
imports = [
|
||||
|
||||
Reference in New Issue
Block a user