Tagged Questions
2
votes
1answer
3k views
@WebAppConfiguration not injected
I am trying to create spring-mvc tests using Spring 3.2.1. Following some tutorials, I thought this would be straight-forward.
Here is my test:
@RunWith( SpringJUnit4ClassRunner.class )
...
1
vote
1answer
2k views
Unit testing spring mvc controller with mockito
i'm using mockito and junit and run unit test against spring mvc
my flow of code is:
Service Layer -> Model Layer -> Controller Layer
i was successfully testing the Controller against the model ...
1
vote
0answers
186 views
Spring mock mvc keep file extension
The only relevant question I could I find here is this one.
Unfortunately unlike the above mentioned question I am not using file names as a path variable. What I am sending in a string which may or ...
0
votes
0answers
76 views
How do you make spring-mvc-test framework stop trapping exceptions?
I am using the Spring MVC Test framework in Spring 3.2.4, and one problem I have with it is that it continuously traps exceptions. For example, if you perform a POST with JSON data (or anything ...