Polishing
This commit is contained in:
@@ -1008,11 +1008,8 @@ public class DefaultMessageListenerContainer extends AbstractPollingMessageListe
|
||||
}
|
||||
}
|
||||
if (!applyBackOffTime(execution)) {
|
||||
StringBuilder msg = new StringBuilder();
|
||||
msg.append("Stopping container for destination '")
|
||||
.append(getDestinationDescription())
|
||||
.append("': back-off policy does not allow ").append("for further attempts.");
|
||||
logger.error(msg.toString());
|
||||
logger.error("Stopping container for destination '" + getDestinationDescription() +
|
||||
"': back-off policy does not allow for further attempts.");
|
||||
stop();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
* Copyright 2002-2021 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.
|
||||
@@ -69,12 +69,12 @@ public class JmsNamespaceHandlerTests {
|
||||
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() throws Exception {
|
||||
public void setup() {
|
||||
this.context = new ToolingTestApplicationContext("jmsNamespaceHandlerTests.xml", getClass());
|
||||
}
|
||||
|
||||
@AfterEach
|
||||
public void tearDown() throws Exception {
|
||||
public void shutdown() {
|
||||
this.context.close();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
* Copyright 2002-2021 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.
|
||||
@@ -75,8 +75,7 @@ public class SimpleMessageListenerContainerTests {
|
||||
@Test
|
||||
public void testSessionTransactedModeReallyDoesDefaultToFalse() {
|
||||
assertThat(this.container.isPubSubNoLocal()).as("The [pubSubLocal] property of SimpleMessageListenerContainer " +
|
||||
"must default to false. Change this test (and the " +
|
||||
"attendant Javadoc) if you have changed the default.").isFalse();
|
||||
"must default to false. Change this test (and the attendant javadoc) if you have changed the default.").isFalse();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user