Nikola
Nikola

Reputation: 890

Testing Swing applications with JUnit

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

Answers (2)

roesslerj
roesslerj

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

Stefan Birkner
Stefan Birkner

Reputation: 24550

JUnit doesn't provide Swing tests. It is a general purpose library/framework for testing.

Upvotes: 0

Related Questions