Actually, the developer of this module did not add a bean for this Controller.
yaa some little mix up in the code,that you might need to clean up a bit
So, I need to run Project1Controller project1Controller = new Project1Controller()
to get the class that I want to test?
which exact class do you want to test
Project1Controller
well you can wrap up every thing in your contrroler onGet method,to a new method ,test that and you can simply call it in your controller when you want to use it
Seems like that should work as long as your controller has a no-args constructor.
2 Likes