Tool support for executable documentation of Java class hierarchies


Autoria(s): Hoffman, D; Strooper, P; Wilkin, S
Contribuinte(s)

M. Woodward

L. White

D. Yates

R. Hierons

Data(s)

01/01/2005

Resumo

While object-oriented programming offers great solutions for today's software developers, this success has created difficult problems in class documentation and testing. In Java, two tools provide assistance: Javadoc allows class interface documentation to be embedded as code comments and JUnit supports unit testing by providing assert constructs and a test framework. This paper describes JUnitDoc, an integration of Javadoc and JUnit, which provides better support for class documentation and testing. With JUnitDoc, test cases are embedded in Javadoc comments and used as both examples for documentation and test cases for quality assurance. JUnitDoc extracts the test cases for use in HTML files serving as class documentation and in JUnit drivers for class testing. To address the difficult problem of testing inheritance hierarchies, JUnitDoc provides a novel solution in the form of a parallel test hierarchy. A small controlled experiment compares the readability of JUnitDoc documentation to formal documentation written in Object-Z. Copyright (c) 2005 John Wiley & Sons, Ltd.

Identificador

http://espace.library.uq.edu.au/view/UQ:77500

Idioma(s)

eng

Publicador

John Wiley & Sons, Ltd

Palavras-Chave #Computer Science, Software Engineering #Documentation #Extreme Programming #Inheritance #Java #Object-oriented #Specification #Automated Testing #Object-oriented Programs #Formal Specification #C1 #280302 Software Engineering #700102 Application tools and system utilities
Tipo

Journal Article