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 collaboration-based design, also known as role mod­el­ing. In collaboration-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 there­by inves­ti­gates whether roles and col­lab­o­ra­tions can serve as basic units of func­tion­al­i­ty pro­vid­ed by a design like a frame­work. Such a mea­sure of func­tion­al­i­ty can serve mul­ti­ple pur­pos­es, for exam­ple esti­mat­ing imple­men­ta­tion efforts or mea­sur­ing com­plex­i­ty.

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. nikhil

    I appre­ci­ate your effort.the design pat­tern approach is nice­ly explained.

    Reply
  2. Pingback: Generating JUnit Test Cases Dynamically - Jorge Manrubia

Leave a Reply