We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab36e58 commit c767403Copy full SHA for c767403
logicaldoc-util/src/main/java/com/logicaldoc/util/junit/AbstractTestCase.java
@@ -211,8 +211,7 @@ private void destroyDatabase() throws SQLException {
211
}
212
213
protected Connection getConnection() throws SQLException {
214
- DataSource ds = (DataSource) context.getBean("DataSource");
215
- return ds.getConnection();
+ return context.getBean(DataSource.class).getConnection();
216
217
218
protected void waiting() throws InterruptedException {
0 commit comments