You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2010/07/08 08:48:45 UTC

svn commit: r961603 - /servicemix/components/engines/servicemix-scripting/trunk/src/test/java/org/apache/servicemix/scripting/ScriptingComponentTest.java

Author: gnodet
Date: Thu Jul  8 06:48:45 2010
New Revision: 961603

URL: http://svn.apache.org/viewvc?rev=961603&view=rev
Log:
SMXCOMP-771: Upgrade to spring 3.x

Modified:
    servicemix/components/engines/servicemix-scripting/trunk/src/test/java/org/apache/servicemix/scripting/ScriptingComponentTest.java

Modified: servicemix/components/engines/servicemix-scripting/trunk/src/test/java/org/apache/servicemix/scripting/ScriptingComponentTest.java
URL: http://svn.apache.org/viewvc/servicemix/components/engines/servicemix-scripting/trunk/src/test/java/org/apache/servicemix/scripting/ScriptingComponentTest.java?rev=961603&r1=961602&r2=961603&view=diff
==============================================================================
--- servicemix/components/engines/servicemix-scripting/trunk/src/test/java/org/apache/servicemix/scripting/ScriptingComponentTest.java (original)
+++ servicemix/components/engines/servicemix-scripting/trunk/src/test/java/org/apache/servicemix/scripting/ScriptingComponentTest.java Thu Jul  8 06:48:45 2010
@@ -341,7 +341,10 @@ public class ScriptingComponentTest exte
     }
 
     protected AbstractXmlApplicationContext createBeanFactory() {
-        return new ClassPathXmlApplicationContext("spring.xml");
+        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[] { "spring.xml" }, false);
+        context.setValidating(false);
+        context.refresh();
+        return context;
     }
 
 }