Polishing

This commit is contained in:
Juergen Hoeller
2017-02-16 15:57:52 +01:00
parent 427fd9b19a
commit dfa8a7c358
4 changed files with 45 additions and 45 deletions

View File

@@ -67,16 +67,23 @@ import static org.springframework.tests.Matchers.*;
*/
public class JdbcTemplateTests {
private Connection connection;
private DataSource dataSource;
private PreparedStatement preparedStatement;
private Statement statement;
private ResultSet resultSet;
private JdbcTemplate template;
private CallableStatement callableStatement;
@Rule
public ExpectedException thrown = ExpectedException.none();
private Connection connection;
private DataSource dataSource;
private PreparedStatement preparedStatement;
private Statement statement;
private ResultSet resultSet;
private JdbcTemplate template;
private CallableStatement callableStatement;
@Before
public void setup() throws Exception {
@@ -98,6 +105,7 @@ public class JdbcTemplateTests {
given(this.callableStatement.getResultSet()).willReturn(this.resultSet);
}
@Test
public void testBeanProperties() throws Exception {
assertTrue("datasource ok", this.template.getDataSource() == this.dataSource);