Update of /cvsroot/webmacro/webmacro/test/unit/org/webmacro/adapter
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18916/test/unit/org/webmacro/adapter
Modified Files:
TestSpringView.java
Log Message:
Set the WM explicitly so test works in eclipse as well as ant
Index: TestSpringView.java
===================================================================
RCS file: /cvsroot/webmacro/webmacro/test/unit/org/webmacro/adapter/TestSpringView.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TestSpringView.java 8 Dec 2005 22:12:42 -0000 1.1
--- TestSpringView.java 13 Apr 2006 16:34:54 -0000 1.2
***************
*** 26,35 ****
public void testViewRender() throws Exception
{
WebMacroView v = new WebMacroView();
// Setup dummy Spring context and provide a WM instance so that
// It doesn't try to resolve test template from Servletcontext
DefaultListableBeanFactory beanFactory = new DefaultListableBeanFactory();
! beanFactory.registerSingleton("WebMacro", new WM());
GenericWebApplicationContext springContext =
--- 26,37 ----
public void testViewRender() throws Exception
{
+ WM wm = new WM();
WebMacroView v = new WebMacroView();
+ v.setWebMacro(wm);
// Setup dummy Spring context and provide a WM instance so that
// It doesn't try to resolve test template from Servletcontext
DefaultListableBeanFactory beanFactory = new DefaultListableBeanFactory();
! beanFactory.registerSingleton("WebMacro", wm);
GenericWebApplicationContext springContext =
|