UISpec4J is an Open Source functional and/or unit testing library for Swing-based Java applications, built on top of the JUnit test harness. If you are writing a Swing application, you will appreciate UISpec4J above all for its simplicity: UISpec4J's APIs are designed to hide as much as possible the complexity of Swing, resulting in easy to write and easy to read test scripts. This is especially true when comparing UISpec4J tests with those produced using Swing or low-level, event-based testing libraries. Here is for example how a JTable content is tested with UISpec4J. This table: can be checked using this test: public void testContacts() { Table contacts = getMainWindow().getTable(); assertTrue(contacts.contentEquals(new Object[][]{ {"John", "12", Boolean.FALSE}, {"Sylvia", "43", Boolean.TRUE}, {"Bill", "31", Boolean.FALSE}})); }
Last release 2.4 is from 2010-12-19