You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes: spring-projects#2727
The `JdbcTemplate` logs a message for the sql to execute when it is
supplied by the `QueryProvider`.
* Refactor `JdbcPollingChannelAdapter` to use new introduced internal
`PreparedStatementCreatorWithMaxRows` with the `QueryProvider`
* Refactor `JdbcMessageHandler` to instantiate a `generatedKeysStatementCreator`
based on the `PreparedStatementCreatorFactory`
* Verify in the `JdbcOutboundGatewayParserTests` that both fixes logs
sql queries properly
Copy file name to clipboardExpand all lines: spring-integration-jdbc/src/test/java/org/springframework/integration/jdbc/config/JdbcOutboundGatewayParserTests.java
+37-4Lines changed: 37 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2002-2018 the original author or authors.
2
+
* Copyright 2002-2019 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -20,6 +20,9 @@
20
20
importstaticorg.junit.Assert.assertFalse;
21
21
importstaticorg.junit.Assert.assertNotNull;
22
22
importstaticorg.junit.Assert.assertTrue;
23
+
importstaticorg.mockito.BDDMockito.given;
24
+
importstaticorg.mockito.Mockito.spy;
25
+
importstaticorg.mockito.Mockito.verify;
23
26
24
27
importjava.sql.PreparedStatement;
25
28
importjava.sql.SQLException;
@@ -28,6 +31,7 @@
28
31
29
32
importjavax.sql.DataSource;
30
33
34
+
importorg.apache.commons.logging.Log;
31
35
importorg.junit.After;
32
36
importorg.junit.Assert;
33
37
importorg.junit.Test;
@@ -97,6 +101,7 @@ public void testMapPayloadMapReply() {
Copy file name to clipboardExpand all lines: spring-integration-jdbc/src/test/java/org/springframework/integration/jdbc/config/handlingKeyGenerationJdbcOutboundGatewayTest.xml
0 commit comments