Java – how to run play framework unit tests in eclipse
•
Java
At present, I am using the play framework in Java to develop web - based applications I want to write a unit test and run it through elcipse I tried, but I didn't find class exceptions How can I do that? Can I help you? I am using play framework 2.0
Solution
If you want to unit test the code calling the framework, you can use an object simulation library (such as mockito) to do this You should refactor the code to isolate the touchpoints in the framework into separate classes as much as possible You can then simulate the framework object and test the code
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码