Chapter 6. UML-F based documentation and adaptation of the JUnit testing framework

JUnit (Beck and Gamma, 1998a; Fowler, 2000) is a Java framework that assists in the definition of automated tests. Testing is an important and obligatory part of the eXtreme Programming approach for software development (Beck, 1999; Beck and Fowler, 2000). This chapter provides a brief UML-F based documentation of JUnit and a set of JUnit adaptation cookbook recipes. It shows how they can be used to guide its adaptation process. Thus, it illustrates how UML-F annotations and cookbook recipes assist in framework adaptation, demonstrating an effective way to support the required adaptation steps.

In this chapter we use a simplified version of JUnit. The source code ...

Get UML Profile for Framework Architectures, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.