camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject [camel] 01/11: Up to latest version
Date Thu, 08 Nov 2018 08:39:43 GMT
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit e713a08f4fc54864e68a54356552047859e7e781
Author: elbaz michael <michaelelbaz@outlook.fr>
AuthorDate: Tue Nov 6 23:17:49 2018 +0100

    Up to latest version
    
    I don't know if is relevant but i'm using the latest camel version (2.22.1) and the method
`component.createSqlSessionFactory()` is now protected so you should use `component.getSqlSessionFactory()`
instead (i don't running the test)
---
 .../java/org/apache/camel/component/mybatis/MyBatisTestSupport.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-mybatis/src/test/java/org/apache/camel/component/mybatis/MyBatisTestSupport.java
b/components/camel-mybatis/src/test/java/org/apache/camel/component/mybatis/MyBatisTestSupport.java
index b9caf9b..e84a448 100644
--- a/components/camel-mybatis/src/test/java/org/apache/camel/component/mybatis/MyBatisTestSupport.java
+++ b/components/camel-mybatis/src/test/java/org/apache/camel/component/mybatis/MyBatisTestSupport.java
@@ -79,7 +79,7 @@ public abstract class MyBatisTestSupport extends CamelTestSupport {
 
     protected Connection createConnection() throws Exception {
         MyBatisComponent component = context.getComponent("mybatis", MyBatisComponent.class);
-        return component.createSqlSessionFactory().getConfiguration().getEnvironment().getDataSource().getConnection();
+        return component.getSqlSessionFactory().getConfiguration().getEnvironment().getDataSource().getConnection();
     }
 
 }


Mime
View raw message