JUnit 3.8 Documented Using Collaborations

Author: Dirk Riehle

Key­words: JUnit 3.8 Doc­u­men­ta­tion

Abstract: This paper describes the design of the unit test­ing frame­work JUnit v3.8. The doc­u­men­ta­tion tech­nique employed is an enhanced ver­sion of col­lab­o­ra­tion-based design, also known as role mod­el­ing. In col­lab­o­ra­tion-based design, objects are viewed as play­ing mul­ti­ple roles in dif­fer­ent con­texts, and dif­fer­ent con­texts are viewed as task speci­fic col­lab­o­ra­tions. The doc­u­men­ta­tion accounts for every method in the JUnit 3.8 frame­work by assign­ing it to a role. It thereby inves­ti­gates whether roles and col­lab­o­ra­tions can serve as basic units of func­tion­al­ity pro­vided by a design like a frame­work. Such a mea­sure of func­tion­al­ity can serve mul­ti­ple pur­poses, for exam­ple esti­mat­ing imple­men­ta­tion efforts or mea­sur­ing com­plex­ity.

Ref­er­ence: In Soft­ware Engi­neer­ing Notes Vol­ume 33, Issue 2 (March 2008), Arti­cle No 5. ACM Press, 2008.

Avail­able as a PDF file.

4 thoughts on “JUnit 3.8 Documented Using Collaborations

  1. Pingback: Generating JUnit Test Cases Dynamically - Jorge Manrubia

Leave a Reply