I have two tests: for controller and view with overrided method createWorkbook
.
Specifically I am testing download of xls document in controller while the document is created as view based on AbstractXlsView
. It works fine with view set as autowired
- corresponding ModelAndView
is created and my overrided createWorkbook
method is called.
However after I have tried to test the view directly the above method is not called and hence the test cannot be performed correctly (there is probably called default createWorkbook
, but not my overrided method).
Where can be the root problem?
Aucun commentaire:
Enregistrer un commentaire