Sonar fixes according latest report (#2676)

* Sonar fixes according latest report

* Fix initialization order in the `GatewayMethodInboundMessageMapper`

* Fix mock in the `DelegatingSessionFactoryTests`

* Fix `AbstractRemoteFileOutboundGateway.listFilesInRemoteDir`

* * PR comments

* * Fix `AbstractRemoteFileOutboundGateway.listFilesInRemoteDir` complexity
This commit is contained in:
Artem Bilan
2018-12-22 11:57:35 -05:00
committed by Gary Russell
parent 1943c15afe
commit 81b4ea1bef
9 changed files with 207 additions and 157 deletions

View File

@@ -35,7 +35,7 @@ import org.junit.runners.model.Statement;
*/
public class LongRunningIntegrationTest extends TestWatcher {
private static final Log logger = LogFactory.getLog(LongRunningIntegrationTest.class);
private static final Log LOGGER = LogFactory.getLog(LongRunningIntegrationTest.class);
private static final String RUN_LONG_PROP = "RUN_LONG_INTEGRATION_TESTS";
@@ -53,7 +53,7 @@ public class LongRunningIntegrationTest extends TestWatcher {
@Override
public Statement apply(Statement base, Description description) {
if (!this.shouldRun) {
logger.info("Skipping long running test " + description.getDisplayName());
LOGGER.info("Skipping long running test " + description.getDisplayName());
return new Statement() {
@Override