Polishing
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user