You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by he...@apache.org on 2014/01/10 17:38:42 UTC
git commit: [CAMEL-7124] Fixed TestNG tests failing with Spring 4.
Updated Branches:
refs/heads/master 57b1225f8 -> 8cab7b153
[CAMEL-7124] Fixed TestNG tests failing with Spring 4.
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/8cab7b15
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/8cab7b15
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/8cab7b15
Branch: refs/heads/master
Commit: 8cab7b1534743a480fe5a7e0bc3be52f2894465b
Parents: 57b1225
Author: Henryk Konsek <he...@gmail.com>
Authored: Fri Jan 10 17:38:16 2014 +0100
Committer: Henryk Konsek <he...@gmail.com>
Committed: Fri Jan 10 17:38:16 2014 +0100
----------------------------------------------------------------------
.../java/org/apache/camel/testng/patterns/DebugSpringTest.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/8cab7b15/components/camel-testng/src/test/java/org/apache/camel/testng/patterns/DebugSpringTest.java
----------------------------------------------------------------------
diff --git a/components/camel-testng/src/test/java/org/apache/camel/testng/patterns/DebugSpringTest.java b/components/camel-testng/src/test/java/org/apache/camel/testng/patterns/DebugSpringTest.java
index 5105e6b..d947ff1 100644
--- a/components/camel-testng/src/test/java/org/apache/camel/testng/patterns/DebugSpringTest.java
+++ b/components/camel-testng/src/test/java/org/apache/camel/testng/patterns/DebugSpringTest.java
@@ -77,7 +77,9 @@ public class DebugSpringTest extends CamelSpringTestSupport {
@Override
protected AbstractApplicationContext createApplicationContext() {
- return new GenericApplicationContext();
+ GenericApplicationContext applicationContext = new GenericApplicationContext();
+ applicationContext.refresh();
+ return applicationContext;
}
}