Add EmptyLineSeparator Checkstyle rule
* Support "blank lines around" via `spring-framework.xml` IDEA config * Fix all the Checkstyle violations
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -31,13 +31,11 @@ public abstract class AbstractJmsChannel extends AbstractMessageChannel {
|
||||
|
||||
private final JmsTemplate jmsTemplate;
|
||||
|
||||
|
||||
public AbstractJmsChannel(JmsTemplate jmsTemplate) {
|
||||
Assert.notNull(jmsTemplate, "jmsTemplate must not be null");
|
||||
this.jmsTemplate = jmsTemplate;
|
||||
}
|
||||
|
||||
|
||||
JmsTemplate getJmsTemplate() {
|
||||
return this.jmsTemplate;
|
||||
}
|
||||
|
||||
@@ -692,6 +692,7 @@ public class ChannelPublishingJmsMessageListener
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -60,7 +60,6 @@ public class DefaultJmsHeaderMapper extends JmsHeaderMapper {
|
||||
Arrays.asList(Boolean.class, Byte.class, Double.class, Float.class, Integer.class, Long.class, Short.class,
|
||||
String.class, byte[].class);
|
||||
|
||||
|
||||
private static final Log LOGGER = LogFactory.getLog(DefaultJmsHeaderMapper.class);
|
||||
|
||||
private volatile String inboundPrefix = "";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -32,7 +32,6 @@ abstract class DynamicJmsTemplateProperties {
|
||||
|
||||
private static final ThreadLocal<Long> TIME_TO_LIVE_HOLDER = new ThreadLocal<>();
|
||||
|
||||
|
||||
private DynamicJmsTemplateProperties() {
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -41,7 +41,6 @@ import org.springframework.util.Assert;
|
||||
*/
|
||||
public class JmsDestinationPollingSource extends AbstractMessageSource<Object> {
|
||||
|
||||
|
||||
private final JmsTemplate jmsTemplate;
|
||||
|
||||
private volatile Destination destination;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -661,7 +661,6 @@ public class JmsOutboundGateway extends AbstractReplyProducingMessageHandler
|
||||
.acceptIfNotNull(this.replyContainerProperties.getTaskExecutor(),
|
||||
container::setTaskExecutor);
|
||||
|
||||
|
||||
if (this.replyContainerProperties.getTaskExecutor() == null) {
|
||||
// set the beanName so the default TE threads get a meaningful name
|
||||
String containerBeanName = this.getComponentName();
|
||||
@@ -673,7 +672,6 @@ public class JmsOutboundGateway extends AbstractReplyProducingMessageHandler
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void start() {
|
||||
this.lifeCycleMonitor.lock();
|
||||
@@ -1005,7 +1003,6 @@ public class JmsOutboundGateway extends AbstractReplyProducingMessageHandler
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* If the replyTo is not temporary, and the connection is lost while waiting for a reply, reconnect for
|
||||
* up to receiveTimeout.
|
||||
@@ -1365,7 +1362,6 @@ public class JmsOutboundGateway extends AbstractReplyProducingMessageHandler
|
||||
return this.replyDestination;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected void validateConfiguration() {
|
||||
if (isSubscriptionDurable() && !isPubSubDomain()) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -59,7 +59,6 @@ public class JmsSendingMessageHandler extends AbstractMessageHandler {
|
||||
|
||||
private EvaluationContext evaluationContext;
|
||||
|
||||
|
||||
public JmsSendingMessageHandler(JmsTemplate jmsTemplate) {
|
||||
Assert.notNull(jmsTemplate, "'jmsTemplate' must not be null");
|
||||
this.jmsTemplate = jmsTemplate;
|
||||
@@ -224,7 +223,6 @@ public class JmsSendingMessageHandler extends AbstractMessageHandler {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private record HeaderMappingMessagePostProcessor(Message<?> integrationMessage, JmsHeaderMapper headerMapper)
|
||||
implements MessagePostProcessor {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -182,7 +182,6 @@ public class SubscribableJmsChannel extends AbstractJmsChannel
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private static final class DispatchingMessageListener implements MessageListener {
|
||||
|
||||
private final Log logger = LogFactory.getLog(this.getClass());
|
||||
@@ -197,7 +196,6 @@ public class SubscribableJmsChannel extends AbstractJmsChannel
|
||||
|
||||
private final MessageBuilderFactory messageBuilderFactory;
|
||||
|
||||
|
||||
DispatchingMessageListener(JmsTemplate jmsTemplate,
|
||||
MessageDispatcher dispatcher, SubscribableJmsChannel channel, boolean isPubSub,
|
||||
MessageBuilderFactory messageBuilderFactory) {
|
||||
@@ -209,7 +207,6 @@ public class SubscribableJmsChannel extends AbstractJmsChannel
|
||||
this.messageBuilderFactory = messageBuilderFactory;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void onMessage(jakarta.jms.Message message) {
|
||||
Message<?> messageToSend = null;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -142,7 +142,6 @@ public class JmsChannelFactoryBean extends AbstractFactoryBean<AbstractJmsChanne
|
||||
|
||||
private int maxSubscribers = Integer.MAX_VALUE;
|
||||
|
||||
|
||||
public JmsChannelFactoryBean() {
|
||||
this(true);
|
||||
}
|
||||
@@ -151,7 +150,6 @@ public class JmsChannelFactoryBean extends AbstractFactoryBean<AbstractJmsChanne
|
||||
this.messageDriven = messageDriven;
|
||||
}
|
||||
|
||||
|
||||
public void setInterceptors(List<ChannelInterceptor> interceptors) {
|
||||
this.interceptors = interceptors;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -46,7 +46,6 @@ public class JmsChannelParser extends AbstractChannelParser {
|
||||
|
||||
private static final String ACKNOWLEDGE_ATTRIBUTE = "acknowledge";
|
||||
|
||||
|
||||
@Override
|
||||
protected BeanDefinitionBuilder buildBeanDefinition(Element element, ParserContext parserContext) {
|
||||
BeanDefinitionBuilder builder =
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -57,7 +57,6 @@ public class JmsMessageDrivenEndpointParser extends AbstractSingleBeanDefinition
|
||||
|
||||
private static final String EXPLICIT_QOS_ENABLED_FOR_REPLIES = "explicit-qos-enabled-for-replies";
|
||||
|
||||
|
||||
private static final String[] CONTAINER_ATTRIBUTES =
|
||||
{
|
||||
JmsParserUtils.CONNECTION_FACTORY_PROPERTY,
|
||||
@@ -74,15 +73,12 @@ public class JmsMessageDrivenEndpointParser extends AbstractSingleBeanDefinition
|
||||
"client-id", "task-executor"
|
||||
};
|
||||
|
||||
|
||||
private final boolean expectReply;
|
||||
|
||||
|
||||
public JmsMessageDrivenEndpointParser(boolean expectReply) {
|
||||
this.expectReply = expectReply;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected String getBeanClassName(Element element) {
|
||||
return JmsMessageDrivenEndpoint.class.getName();
|
||||
@@ -197,7 +193,6 @@ public class JmsMessageDrivenEndpointParser extends AbstractSingleBeanDefinition
|
||||
return element.getAttribute("container");
|
||||
}
|
||||
|
||||
|
||||
private boolean hasExternalContainer(Element element) {
|
||||
return element.hasAttribute("container");
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016-2023 the original author or authors.
|
||||
* Copyright 2016-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -144,7 +144,6 @@ public class JmsInboundGatewaySpec<S extends JmsInboundGatewaySpec<S>>
|
||||
return _this();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set a SpEL expression to resolve a 'replyTo' destination from a request {@link jakarta.jms.Message}
|
||||
* as a root evaluation object if {@link jakarta.jms.Message#getJMSReplyTo()} is null.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016-2023 the original author or authors.
|
||||
* Copyright 2016-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -300,7 +300,6 @@ public class JmsOutboundGatewaySpec extends MessageHandlerSpec<JmsOutboundGatewa
|
||||
return _this();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* An {@link IntegrationComponentSpec} for {@link JmsOutboundGateway.ReplyContainerProperties}.
|
||||
*
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2014-2019 the original author or authors.
|
||||
* Copyright 2014-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -64,4 +64,5 @@ public abstract class JmsAdapterUtils {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -52,7 +52,6 @@ public class ChannelPublishingJmsMessageListenerTests {
|
||||
|
||||
private final Session session = new StubSession("test");
|
||||
|
||||
|
||||
@Test
|
||||
public void noReplyToAndNoDefault() throws JMSException {
|
||||
final QueueChannel requestChannel = new QueueChannel();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -525,7 +525,6 @@ public class DefaultJmsHeaderMapperTests {
|
||||
assertThat(headers.get("foo")).isEqualTo("bar");
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testJsonHeaderMapping() throws JMSException {
|
||||
|
||||
@@ -550,7 +549,6 @@ public class DefaultJmsHeaderMapperTests {
|
||||
assertThat(result).isInstanceOf(String.class);
|
||||
}
|
||||
|
||||
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, property = "javatype")
|
||||
private static class Foo {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -34,7 +34,6 @@ public class StubConnection implements Connection {
|
||||
|
||||
private String messageText;
|
||||
|
||||
|
||||
public StubConnection(String messageText) {
|
||||
this.messageText = messageText;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -30,13 +30,11 @@ public class StubConsumer implements MessageConsumer {
|
||||
|
||||
private String messageSelector;
|
||||
|
||||
|
||||
public StubConsumer(String messageText, String messageSelector) {
|
||||
this.messageText = messageText;
|
||||
this.messageSelector = messageSelector;
|
||||
}
|
||||
|
||||
|
||||
public void close() throws JMSException {
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -34,12 +34,10 @@ public class StubProducer implements MessageProducer {
|
||||
|
||||
private long deliveryDelay;
|
||||
|
||||
|
||||
public StubProducer(Destination destination) {
|
||||
this.staticDestination = destination;
|
||||
}
|
||||
|
||||
|
||||
public Message getLastMessageSent() {
|
||||
return this.lastMessageSent;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -45,7 +45,6 @@ public class StubSession implements Session {
|
||||
|
||||
private final String messageText;
|
||||
|
||||
|
||||
public StubSession(String messageText) {
|
||||
this.messageText = messageText;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -57,7 +57,6 @@ public class StubTextMessage implements TextMessage {
|
||||
|
||||
private long deliveryTime;
|
||||
|
||||
|
||||
public StubTextMessage() {
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -46,7 +46,6 @@ public class DefaultConfigurationTests {
|
||||
@Autowired
|
||||
private ApplicationContext context;
|
||||
|
||||
|
||||
@Test
|
||||
public void verifyErrorChannel() {
|
||||
Object errorChannel = context.getBean("errorChannel");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -80,7 +80,6 @@ public class ExceptionHandlingSiConsumerTests extends ActiveMQMultiContextTests
|
||||
assertThat(reply).isEqualTo("echoWithException");
|
||||
}
|
||||
|
||||
|
||||
public static class SampleService {
|
||||
|
||||
public String echoWithException(String value) {
|
||||
@@ -93,7 +92,6 @@ public class ExceptionHandlingSiConsumerTests extends ActiveMQMultiContextTests
|
||||
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public static class SampleException extends RuntimeException {
|
||||
|
||||
@@ -103,14 +101,12 @@ public class ExceptionHandlingSiConsumerTests extends ActiveMQMultiContextTests
|
||||
|
||||
}
|
||||
|
||||
|
||||
public interface SampleGateway {
|
||||
|
||||
String echo(String value);
|
||||
|
||||
}
|
||||
|
||||
|
||||
public static class SampleErrorTransformer {
|
||||
|
||||
public org.springframework.messaging.Message<?> transform(Throwable t) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -51,7 +51,6 @@ public class GlobalChannelInterceptorTests extends ActiveMQMultiContextTests {
|
||||
assertThat(interceptors.get(0) instanceof SampleInterceptor).isTrue();
|
||||
}
|
||||
|
||||
|
||||
public static class SampleInterceptor implements ChannelInterceptor {
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -86,7 +86,6 @@ public class InboundOneWayErrorTests extends ActiveMQMultiContextTests {
|
||||
assertThat(this.errorHandler.lastError).isNull();
|
||||
}
|
||||
|
||||
|
||||
public static class TestService {
|
||||
|
||||
public void process(Object o) {
|
||||
@@ -95,7 +94,6 @@ public class InboundOneWayErrorTests extends ActiveMQMultiContextTests {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
private static class TestException extends RuntimeException {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -179,7 +179,6 @@ public class JmsChannelParserTests extends ActiveMQMultiContextTests {
|
||||
.isSameAs(this.messageBuilderFactory);
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void topicNameChannel() {
|
||||
assertThat(topicNameChannel.getClass()).isEqualTo(SubscribableJmsChannel.class);
|
||||
@@ -320,7 +319,6 @@ public class JmsChannelParserTests extends ActiveMQMultiContextTests {
|
||||
assertThat(container.getDestinationName()).isEqualTo("custom.container.queue");
|
||||
}
|
||||
|
||||
|
||||
static class TestDestinationResolver implements DestinationResolver {
|
||||
|
||||
@Autowired
|
||||
@@ -340,7 +338,6 @@ public class JmsChannelParserTests extends ActiveMQMultiContextTests {
|
||||
|
||||
}
|
||||
|
||||
|
||||
static class TestInterceptor implements ChannelInterceptor {
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -84,7 +84,6 @@ public class JmsDynamicDestinationTests extends ActiveMQMultiContextTests {
|
||||
assertThat(result2.getPayload()).isEqualTo("test-2!!");
|
||||
}
|
||||
|
||||
|
||||
public static class Responder {
|
||||
|
||||
public String one(String message) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2018-2022 the original author or authors.
|
||||
* Copyright 2018-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -59,7 +59,6 @@ public class JmsMessageDrivenEndpointTests extends ActiveMQMultiContextTests {
|
||||
"a MessageListener configured since the endpoint configures its own listener implementation.");
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testStopStart(@Autowired JmsTemplate template,
|
||||
@Autowired JmsMessageDrivenEndpoint endpoint, @Autowired QueueChannel out) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -72,7 +72,6 @@ public class JmsMessageHistoryTests extends ActiveMQMultiContextTests {
|
||||
assertThat(event2.getProperty(MessageHistory.NAME_PROPERTY)).isEqualTo("jmsInputChannel");
|
||||
}
|
||||
|
||||
|
||||
public interface SampleGateway {
|
||||
|
||||
void send(String value);
|
||||
@@ -81,7 +80,6 @@ public class JmsMessageHistoryTests extends ActiveMQMultiContextTests {
|
||||
|
||||
}
|
||||
|
||||
|
||||
public static class SampleService {
|
||||
|
||||
public Message<?> echoMessage(String value) {
|
||||
@@ -90,7 +88,6 @@ public class JmsMessageHistoryTests extends ActiveMQMultiContextTests {
|
||||
|
||||
}
|
||||
|
||||
|
||||
public static class SampleHeaderMapper extends DefaultJmsHeaderMapper {
|
||||
|
||||
public void fromHeaders(MessageHeaders headers, jakarta.jms.Message jmsMessage) {
|
||||
@@ -127,7 +124,6 @@ public class JmsMessageHistoryTests extends ActiveMQMultiContextTests {
|
||||
|
||||
}
|
||||
|
||||
|
||||
public static class SampleComponent implements NamedComponent {
|
||||
|
||||
private String name;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -209,4 +209,5 @@ public class JmsOutboundChannelAdapterParserTests {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -197,7 +197,6 @@ public class JmsOutboundGatewayParserTests extends ActiveMQMultiContextTests {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public interface SampleGateway {
|
||||
|
||||
String echo(String value);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -96,7 +96,6 @@ public class JmsPriorityTests extends ActiveMQMultiContextTests {
|
||||
assertThat(result.getPayload()).isEqualTo("priority=8");
|
||||
}
|
||||
|
||||
|
||||
public static class PriorityReader implements SessionAwareMessageListener<jakarta.jms.Message> {
|
||||
|
||||
public void onMessage(jakarta.jms.Message request, Session session) throws JMSException {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -68,7 +68,6 @@ public class JmsWithMarshallingMessageConverterTests extends ActiveMQMultiContex
|
||||
assertThat(replyMessage.getPayload()).isEqualTo("HELLO");
|
||||
}
|
||||
|
||||
|
||||
public static class SampleService {
|
||||
|
||||
public String echo(String value) {
|
||||
@@ -77,7 +76,6 @@ public class JmsWithMarshallingMessageConverterTests extends ActiveMQMultiContex
|
||||
|
||||
}
|
||||
|
||||
|
||||
public static class SampleMarshaller implements Marshaller {
|
||||
|
||||
public void marshal(Object graph, Result result) throws IOException, XmlMappingException {
|
||||
@@ -97,7 +95,6 @@ public class JmsWithMarshallingMessageConverterTests extends ActiveMQMultiContex
|
||||
|
||||
}
|
||||
|
||||
|
||||
public static class SampleUnmarshaller implements Unmarshaller {
|
||||
|
||||
public boolean supports(Class<?> clazz) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -63,7 +63,6 @@ public class MiscellaneousTests extends ActiveMQMultiContextTests {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void exchange(CountDownLatch latch, RequestReplyExchanger gateway, AtomicInteger replies) {
|
||||
new Thread(() -> {
|
||||
try {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -210,7 +210,6 @@ public class RequestReplyScenariosWithCachedConsumersTests extends ActiveMQMulti
|
||||
|
||||
latch.await();
|
||||
|
||||
|
||||
TestUtils.getPropertyValue(context.getBean("fastGateway"), "handler", JmsOutboundGateway.class)
|
||||
.setReceiveTimeout(10000);
|
||||
Thread.sleep(1000);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -80,7 +80,6 @@ public class RequestReplyScenariosWithCorrelationKeyProvidedTests extends Active
|
||||
new ClassPathXmlApplicationContext("explicit-correlation-key.xml", this.getClass());
|
||||
RequestReplyExchanger gateway = context.getBean("explicitCorrelationKeyGatewayC", RequestReplyExchanger.class);
|
||||
|
||||
|
||||
for (int i = 0; i < 3; i++) {
|
||||
try {
|
||||
gateway.exchange(MessageBuilder.withPayload("hello").build());
|
||||
@@ -97,7 +96,6 @@ public class RequestReplyScenariosWithCorrelationKeyProvidedTests extends Active
|
||||
context.close();
|
||||
}
|
||||
|
||||
|
||||
public static class DelayedService {
|
||||
|
||||
public String echo(String s) throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user