add the user into the session first look into the register action. this one will add the user into the session...
tibi measwel wrote: > I have a method in my action wherin I determine the user from the request > like: > user = userManager.getUserByUsername(getRequest().getRemoteUser()); > > When testing this method, the test fails on the user being null; quite > logical, as there is no request at test time. How should I implement the > test, so he can find a user? I believe I should mock a request, but cant > find the code how to do it. > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net For additional commands, e-mail: users-h...@appfuse.dev.java.net