You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2018/11/08 08:39:43 UTC

[camel] 01/11: Up to latest version

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 <mi...@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();
     }
 
 }