1. Test Controllers forum.springsource.orgMaybe this is a stupid question, but somebody have to pose stupid questions also... Is it at all possible to JUnit-test Spring controllers with JUnit but without HttpUnit and/or Cactus? And ... |
2. Test controllers forum.springsource.orgWhat tools work well for testing controller classes that rely on HttpServletRequest objects? In fact, if someone could post a JUnit test for a controller that a) sets up the spring ... |
3. spring-test-mvc not finding my controller forum.springsource.orgspring-test-mvc not finding my controller Hello, I'm trying to to test a sample mvc application with spring-test-mvc (version 1.0.0.BUILD-SNAPSHOT and spring frameworrk 3.1.0.BUILD-SNAPSHOT), but I'm having troubles calling the controller using ... |
4. Testing AbstractWizardFormController extension forum.springsource.orgI'm having trouble unit testing my AbstractWizardFormController extensions. I'd like to test the handleRequest method for each page, but I'm not sure how to make sure that the session is correct. ... |
5. Problem testing Controllers classes :( forum.springsource.orgIs possible to load an instance of the ConfigurableWebApplicationContext using a class similar as FileSystemXmlApplicationContext ?? It's that I want: Code: //ConfigurableWebApplicationContext root = new FileSystemXmlApplicationContext("web/WEB-INF/context.xml); I'm trying to use the ... |
6. help with testing controllers forum.springsource.orgJul 28th, 2005, 03:18 AM #1 pir8ped View Profile View Forum Posts Private Message Senior Member Join Date Aug 2004 Location Devon, UK Posts 132 help with testing controllers Hi, I ... |
7. testing a SimpleFormController forum.springsource.orgtesting a SimpleFormController how do you test a SimpleFormController, a basic code/example will greatly help. i am using this reference http://jroller.com/page/jwboring/200..._controller_in but to no avail. i am being told that onSubmit(...) ... |
8. Why this SimpleFormController test failed? forum.springsource.orgWhy this SimpleFormController test failed? Hi, all I am doing some experiments on SimpleFormController, but still can't make it work. Any help will be appreciated. Here is my code: --- dispatcher-servlet.xml ... |
9. The 'right' way to test controllers..? forum.springsource.orgThe 'right' way to test controllers..? I've been reading some of the various posts and the test chapter in the Spring docs and am looking for the right way to test ... |
10. Bizarre ClassCastException while attempting to test Controller forum.springsource.orgBizarre ClassCastException while attempting to test Controller Hi all, I am having the most bizarre ClassCastException while trying to test a Controller class outside of a servlet container. I'll put code ... |
11. EasyMock Testing : Errors - Controller does not run in an ApplicationContext forum.springsource.orgHi, I am facing a problem while testing a controller which is extending SimpleFormController. I have tried to read some message from resource file using: getApplicationContext().getMessage(key, args[], local); while testing this ... |
12. Mock Testing the MVC Controller class forum.springsource.orgthe controller is just an interface - simply create a mock for it (through EasyMock), record behavior and start using it. What exactly do you have in mind? |
13. Problem testing fileupload-controller forum.springsource.orgProblem testing fileupload-controller Hi, I have problems to test this fileupload-controller (via MultiActionController): Code: public void importDocument(MultipartHttpServletRequest request, HttpServletResponse response, FileUploadCommand fileUploadCommand) throws Exception { String sourceName = ServletRequestUtils.getRequiredStringParameter(request,SOURCE_NAME_PARAM); String sourceUrl ... |
14. Doubt regarding Testing of Web Controllers forum.springsource.orgHi, I have a simple doubt regarding the testing of controllers in the web layer. Are the tests normally run against a real database or is it run against a mock ... |
15. Direct testing of controllers forum.springsource.orgHello, The need has risen for me to directly test the output of one of my controllers (it's a gateway that can't use SOAP due to some of our customers' requests, ... |
16. Trouble Testing AbstractWizardFormController forum.springsource.orgTrouble Testing AbstractWizardFormController I have been trying to setup a JUnit test to verify my AbstractWizardFormController. When I tried to test using the Spring MockActionRequest/MockActionResponse objects, it gave me an error: ... |
17. Problem with testing my controller forum.springsource.orgProblem with testing my controller I have a problem with testing my controller I am using netbeans 5.5.1 with netbeans-support.nbm 0.3 version. I have written class that implements Controller interface and ... |
18. Annotation based controllers, Multipart and Testing forum.springsource.orgAnnotation based controllers, Multipart and Testing Hi community, I'm just playing around with the new annotation based Controllers in Spring 2.5 since testability seems to be really nice. It all works ... |
19. Testing HandlerInterceptors and Controllers forum.springsource.orgHi, I have a controller and few interceptors mapped to a URL. How do I unit test interceptors and controllers and do integration testing of both-- by both I mean I ... |
20. @Controller and testing forum.springsource.org@Controller and testing Hi all, I have a small design problem with annotations and testing. I am using the @Requestmapping and @Initbinder in my controller object and the name of the ... |
21. Testing Annotated Controllers forum.springsource.orgTesting Annotated Controllers Hi, I have a slightly daft question. Has anyone tried testing a Spring annotated controller (e.g. AddPetForm in petclinic) with MockHttpServletRequest? Now, yes, I know that unit tests ... |
22. Null pointer while testing annotated controller forum.springsource.orgNull pointer while testing annotated controller Hi, I am using annotations to create a controller method which accepts a string and returns a ModelAndView object that contains the response object and ... |
23. How to test 2.5 MVC annotationed Controller forum.springsource.orgHow to test 2.5 MVC annotationed Controller I am trying the new MVC annotations introduced by Spring 2.5. Basically I am quiet happy about this new feature. It reduces contents in ... |
24. Testing controllers with truly complex behaviour - How to do that? forum.springsource.orgTesting controllers with truly complex behaviour - How to do that? Good afternoon to everybody (well... it's afternoon in Europe :-) A real-world controller has a ViewResolver c/q an ExceptionResolver, maybe ... |
25. Testing MVC Controllers with IOC forum.springsource.orgTesting MVC Controllers with IOC Hi all, I'm pretty new to Spring and the Spring MVC framework and I'm trying to figure out the best way to write test classes for ... |
26. Testing a Controller forum.springsource.orgSomeone can show me the best way to test a controller that returns a ModelAndView with an HashMap that contains some kinds of object? Thanks a lot. |
27. white box testing controllers forum.springsource.orgwhite box testing controllers what's the best way to get a SecureContext in unit tests? I'm using auth.getPrincipal()).getUsername() to do some queries based on the username in a controller, and would ... |