13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

302Chapter 13JUnit: Automating Unit TestingFigure 13.3 JUnit Swing GUI running testsThis is the GUI part of JUnit, part of what has made it so popular. Bywriting JUnit tests, you get to use their GUI. If you were to develop your owntesting mechanism, you would also have to (re)invent a GUI.There is an AWT GUI for the Swing-averse, but it is less featured. Thereis also a plain command-line test case runner:$ java junit.textui.TestRunner junit.samples.AllTests.......................................................................................................................Time: 3.834OK (119 tests)$

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!