Re: [appfuse-user] tutorial PersonControllerTest AsertionFailure (modular spring MVC)

2007-05-25 Thread marshall
Yeah, I've got some sample data in both files. I've attached the output of my mvn call. Perhaps something might stand out. I'll keep looking. Marshall Matt Raible <[EMAIL PROTECTED]> wrote: Did you add sample data to both sample-data.xml files? There's one in each project. Unfortunately,

Re: [appfuse-user] tutorial PersonControllerTest AsertionFailure (modular spring MVC)

2007-05-25 Thread Matt Raible
Did you add sample data to both sample-data.xml files? There's one in each project. Unfortunately, I haven't figured out a better way to do this, although you may be able to point the web project's dbunit configuration to the core project. Matt On 5/25/07, marshall <[EMAIL PROTECTED]> wrote: He

Re: [appfuse-user] tutorial PersonControllerTest AsertionFailure (modular spring MVC)

2007-05-25 Thread marshall
Hey Matt; I've tried comparing my version with the tutorial-spring code and I don't see any difference. The java classes are the same. The configs all look good too. I'm wondering if this is a potential modular issue? Your tutorial runs fine with the tests passing. I've added

Re: [appfuse-user] tutorial PersonControllerTest AsertionFailure (modular spring MVC)

2007-05-24 Thread Matt Raible
Do you have any Person records in your database? Maybe you forgot to add them into sample-data.xml? You could manually add some as part of your test using PersonManager.save(). Matt On 5/24/07, marshall <[EMAIL PROTECTED]> wrote: Hmm; Matt, this may be where my naivete shows itself. I could

Re: [appfuse-user] tutorial PersonControllerTest AsertionFailure (modular spring MVC)

2007-05-24 Thread marshall
Hmm; Matt, this may be where my naivete shows itself. I could add something like the following to PersonController's handleRequest method as you suggest below: return new ModelAndView().addAllObjects(personManager.getAll()); I also tested the contents of personManager as follows

Re: [appfuse-user] tutorial PersonControllerTest AsertionFailure (modular spring MVC)

2007-05-22 Thread Matt Raible
What happens if you use new ModelAndView().addAllObjects() - do you get the same error? Matt On 5/22/07, marshall <[EMAIL PROTECTED]> wrote: Interestingly, when I debug the ModelMap, the object has null values. Matt Raible <[EMAIL PROTECTED]> wrote: If you print out the contents of ModelMap, w

Re: [appfuse-user] tutorial PersonControllerTest AsertionFailure (modular spring MVC)

2007-05-22 Thread marshall
Interestingly, when I debug the ModelMap, the object has null values. Matt Raible <[EMAIL PROTECTED]> wrote: If you print out the contents of ModelMap, what does it have in there? You might try debugging your test and setting a breakpoint to inspect. Matt On 5/22/07, marshall wrote: > Sure; >

Re: [appfuse-user] tutorial PersonControllerTest AsertionFailure (modular spring MVC)

2007-05-22 Thread Matt Raible
If you print out the contents of ModelMap, what does it have in there? You might try debugging your test and setting a breakpoint to inspect. Matt On 5/22/07, marshall <[EMAIL PROTECTED]> wrote: Sure; Here it is: package com.ss.webapp.controller; import javax.servlet.http.HttpServletReques

Re: [appfuse-user] tutorial PersonControllerTest AsertionFailure (modular spring MVC)

2007-05-22 Thread marshall
Sure; Here it is: package com.ss.webapp.controller; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.appfuse.service.Gener

Re: [appfuse-user] tutorial PersonControllerTest AsertionFailure (modular spring MVC)

2007-05-22 Thread Matt Raible
The problem likely occurs in PersonController.java - can you post the code for that? Thanks, Matt On 5/22/07, marshall <[EMAIL PROTECTED]> wrote: Sure Matt; I'll include a few things just in case, starting with the PersonControllerTest class: package com.ss.webapp.controller; import java.ut

Re: [appfuse-user] tutorial PersonControllerTest AsertionFailure (modular spring MVC)

2007-05-22 Thread marshall
Sure Matt; I'll include a few things just in case, starting with the PersonControllerTest class: package com.ss.webapp.controller; import java.util.List; import org.appfuse.webapp.controller.BaseControllerTestCase; import org.springframework.ui.ModelMap; import org.springframew