Reputation: 890
I have a simple mouse-dragging rectangle application which I have to test with JUnit or probably by introducing a mock object. My question is: Does JUnit provide any swing tests and which of the two options would be easier?
Upvotes: 0
Views: 136
Reputation: 2661
With such limited information, this question is hard to answer - i.e. what would you mock? JUnit itself does not provide any specific support for Swing. For that you can have a look at uispec4j.
Upvotes: 1
Reputation: 24550
JUnit doesn't provide Swing tests. It is a general purpose library/framework for testing.
Upvotes: 0