diff --git a/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binder/BindingTargetTests.java b/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binder/BindingTargetTests.java index e243c600e..073ab921c 100644 --- a/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binder/BindingTargetTests.java +++ b/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binder/BindingTargetTests.java @@ -47,7 +47,7 @@ class BindingTargetTests { @SuppressWarnings({"rawtypes", "unchecked"}) @Test - void testArbitraryInterfaceChannelsBound() { + void arbitraryInterfaceChannelsBound() { Binder binder = this.binderFactory.getBinder(null, MessageChannel.class); verify(binder).bindConsumer(eq("someQueue.0"), isNull(), Mockito.any(MessageChannel.class), Mockito.any()); diff --git a/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binder/DefaultBinderTests.java b/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binder/DefaultBinderTests.java index ee86e6284..2c481bde9 100644 --- a/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binder/DefaultBinderTests.java +++ b/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binder/DefaultBinderTests.java @@ -30,7 +30,7 @@ import static org.assertj.core.api.Assertions.assertThat; class DefaultBinderTests { @Test - void testDefaultBinderIsPaused() { + void defaultBinderIsPaused() { @SuppressWarnings({ "rawtypes" }) DefaultBinding binding = new DefaultBinding<>("foo", "bar", "target", (Binding) () -> { }); @@ -43,13 +43,13 @@ class DefaultBinderTests { } @Test - void testDefaultBinderIsNull() { + void defaultBinderIsNull() { DefaultBinding binding = new DefaultBinding<>("foo", "bar", "target", null); assertThat(binding.getState()).isNotNull(); } @Test - void testDefaultBinderIsRunning() { + void defaultBinderIsRunning() { DefaultBinding binding = new DefaultBinding<>("foo", "bar", "target", new Lifecycle() { private Boolean running = false; @Override diff --git a/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binder/ExtendedPropertiesDefaultTests.java b/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binder/ExtendedPropertiesDefaultTests.java index d95f7299b..98997522c 100644 --- a/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binder/ExtendedPropertiesDefaultTests.java +++ b/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binder/ExtendedPropertiesDefaultTests.java @@ -34,7 +34,7 @@ import static org.assertj.core.api.Assertions.assertThat; class ExtendedPropertiesDefaultTests { @Test - void testExtendedDefaultProducerProperties() { + void extendedDefaultProducerProperties() { DefaultBinderFactory binderFactory = createMockExtendedBinderFactory(); Binder binder = binderFactory.getBinder(null, MessageChannel.class); @@ -46,7 +46,7 @@ class ExtendedPropertiesDefaultTests { } @Test - void testExtendedDefaultConsumerProperties() { + void extendedDefaultConsumerProperties() { DefaultBinderFactory binderFactory = createMockExtendedBinderFactory(); Binder binder = binderFactory.getBinder(null, MessageChannel.class); diff --git a/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binder/InputOutputBindingOrderTest.java b/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binder/InputOutputBindingOrderTest.java index c0668b1d3..06e4ed10d 100644 --- a/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binder/InputOutputBindingOrderTest.java +++ b/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binder/InputOutputBindingOrderTest.java @@ -46,7 +46,7 @@ class InputOutputBindingOrderTest { @SuppressWarnings({ "rawtypes", "unchecked" }) @Test - void testInputOutputBindingOrder() { + void inputOutputBindingOrder() { ConfigurableApplicationContext applicationContext = new SpringApplicationBuilder( TestSource.class).web(WebApplicationType.NONE).run( "--spring.cloud.stream.defaultBinder=mock", diff --git a/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binder/MessageConverterTests.java b/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binder/MessageConverterTests.java index dd889c868..8fb597184 100644 --- a/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binder/MessageConverterTests.java +++ b/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binder/MessageConverterTests.java @@ -36,7 +36,7 @@ import static org.assertj.core.api.Assertions.fail; class MessageConverterTests { @Test - void testHeaderEmbedding() throws Exception { + void headerEmbedding() throws Exception { Message message = MessageBuilder.withPayload("Hello".getBytes()) .setHeader("foo", "bar").setHeader("baz", "quxx").build(); byte[] embedded = EmbeddedHeaderUtils.embedHeaders(new MessageValues(message), @@ -53,7 +53,7 @@ class MessageConverterTests { } @Test - void testConfigurableHeaders() throws Exception { + void configurableHeaders() throws Exception { Message message = MessageBuilder.withPayload("Hello".getBytes()) .setHeader("foo", "bar").setHeader("baz", "quxx") .setHeader("contentType", "text/plain").build(); @@ -80,7 +80,7 @@ class MessageConverterTests { } @Test - void testHeaderExtractionWithDirectPayload() throws Exception { + void headerExtractionWithDirectPayload() throws Exception { Message message = MessageBuilder.withPayload("Hello".getBytes()) .setHeader("foo", "bar").setHeader("baz", "quxx").build(); byte[] embedded = EmbeddedHeaderUtils.embedHeaders(new MessageValues(message), @@ -96,7 +96,7 @@ class MessageConverterTests { } @Test - void testUnicodeHeader() throws Exception { + void unicodeHeader() throws Exception { Message message = MessageBuilder.withPayload("Hello".getBytes()) .setHeader("foo", "bar").setHeader("baz", "ØØØØØØØØ").build(); byte[] embedded = EmbeddedHeaderUtils.embedHeaders(new MessageValues(message), @@ -113,7 +113,7 @@ class MessageConverterTests { } @Test - void testHeaderEmbeddingMissingHeader() throws Exception { + void headerEmbeddingMissingHeader() throws Exception { Message message = MessageBuilder.withPayload("Hello".getBytes()) .setHeader("foo", "bar").build(); byte[] embedded = EmbeddedHeaderUtils.embedHeaders(new MessageValues(message), @@ -124,7 +124,7 @@ class MessageConverterTests { } @Test - void testBadDecode() throws Exception { + void badDecode() throws Exception { byte[] bytes = new byte[] { (byte) 0xff, 99 }; Message message = new GenericMessage<>(bytes); try { diff --git a/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binder/SinkBindingWithDefaultsTests.java b/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binder/SinkBindingWithDefaultsTests.java index 7bf8771ee..cfcc877bf 100644 --- a/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binder/SinkBindingWithDefaultsTests.java +++ b/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binder/SinkBindingWithDefaultsTests.java @@ -45,7 +45,7 @@ class SinkBindingWithDefaultsTests { @SuppressWarnings({ "rawtypes", "unchecked" }) @Test - void testSinkInputChannelBound() { + void sinkInputChannelBound() { Binder binder = this.binderFactory.getBinder(null, MessageChannel.class); verify(binder).bindConsumer(eq("consumer-in-0"), isNull(), Mockito.any(MessageChannel.class), Mockito.any()); diff --git a/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binding/BindingLifecycleTests.java b/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binding/BindingLifecycleTests.java index 64a0c7bbb..1137edfbf 100644 --- a/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binding/BindingLifecycleTests.java +++ b/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binding/BindingLifecycleTests.java @@ -37,7 +37,7 @@ import static org.mockito.Mockito.mock; class BindingLifecycleTests { @Test - void testInputBindingLifecycle() { + void inputBindingLifecycle() { Map bindables = new HashMap<>(); Bindable bindableWithTwo = new Bindable() { @@ -71,7 +71,7 @@ class BindingLifecycleTests { } @Test - void testOutputBindingLifecycle() { + void outputBindingLifecycle() { Map bindables = new HashMap<>(); Bindable bindableWithTwo = new Bindable() { diff --git a/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binding/CustomPartitionedProducerTest.java b/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binding/CustomPartitionedProducerTest.java index 616da4dff..1a5e4ee3b 100644 --- a/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binding/CustomPartitionedProducerTest.java +++ b/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binding/CustomPartitionedProducerTest.java @@ -44,7 +44,7 @@ import static org.assertj.core.api.Assertions.assertThat; class CustomPartitionedProducerTest { @Test - void testCustomPartitionedProducer() { + void customPartitionedProducer() { ApplicationContext context = SpringApplication.run( CustomPartitionedProducerTest.TestSource.class, "--spring.cloud.stream.output-bindings=output", @@ -81,7 +81,7 @@ class CustomPartitionedProducerTest { } @Test - void testCustomPartitionedProducerByName() { + void customPartitionedProducerByName() { ApplicationContext context = SpringApplication.run( CustomPartitionedProducerTest.TestSource.class, "--spring.cloud.stream.output-bindings=output", @@ -149,7 +149,7 @@ class CustomPartitionedProducerTest { } @Test - public void testCustomPartitionedProducerMultipleInstances() { + public void customPartitionedProducerMultipleInstances() { ApplicationContext context = SpringApplication.run( CustomPartitionedProducerTest.TestSourceMultipleStrategies.class, "--spring.cloud.stream.output-bindings=output", diff --git a/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binding/MessageConverterConfigurerTests.java b/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binding/MessageConverterConfigurerTests.java index ec792fcd3..38855bd98 100644 --- a/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binding/MessageConverterConfigurerTests.java +++ b/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/binding/MessageConverterConfigurerTests.java @@ -45,7 +45,7 @@ import static org.assertj.core.api.Assertions.fail; class MessageConverterConfigurerTests { // @Test - void testConfigureOutputChannelWithBadContentType() { + void configureOutputChannelWithBadContentType() { BindingServiceProperties props = new BindingServiceProperties(); BindingProperties bindingProps = new BindingProperties(); bindingProps.setContentType("application/json"); @@ -65,7 +65,7 @@ class MessageConverterConfigurerTests { @Test @Disabled - void testConfigureOutputChannelCannotConvert() { + void configureOutputChannelCannotConvert() { BindingServiceProperties props = new BindingServiceProperties(); BindingProperties bindingProps = new BindingProperties(); bindingProps.setContentType("foo/bar"); diff --git a/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/config/ArgumentResolversTests.java b/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/config/ArgumentResolversTests.java index 439d656c9..9aa2b3d26 100644 --- a/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/config/ArgumentResolversTests.java +++ b/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/config/ArgumentResolversTests.java @@ -40,7 +40,7 @@ class ArgumentResolversTests { @SuppressWarnings({ "rawtypes", "unchecked" }) @Test - void testSmartPayloadArgumentResolver() throws Exception { + void smartPayloadArgumentResolver() throws Exception { SmartPayloadArgumentResolver resolver = new SmartPayloadArgumentResolver(new TestMessageConverter()); diff --git a/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/partitioning/PartitionedConsumerTest.java b/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/partitioning/PartitionedConsumerTest.java index f12ae14f3..af0bda435 100644 --- a/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/partitioning/PartitionedConsumerTest.java +++ b/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/partitioning/PartitionedConsumerTest.java @@ -54,7 +54,7 @@ class PartitionedConsumerTest { @Test @SuppressWarnings({ "rawtypes", "unchecked" }) - void testBindingPartitionedConsumer() { + void bindingPartitionedConsumer() { Binder binder = this.binderFactory.getBinder(null, MessageChannel.class); ArgumentCaptor argumentCaptor = ArgumentCaptor .forClass(ConsumerProperties.class);