Unit testing Swing components – impossible?

Duffblog 2.0: Unit testing Swing components – impossible?

Unit testing Swing components – impossible?

Testing Swing components seems to fill many developers with fear. “How can I unit test this thing?" they often ask, “it’s full of icky event handling code and troublesome painting…".

Frameworks such as Abbot are often the solution developers find for this problem. Essentially, many developers abandon the idea of writing regular unit tests for Swing components, and resort to “click simulators" which are frequently functional tests rather than unit tests.

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *

What is 2 + 4 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)