DocumentCode :
1852155
Title :
Towards a Comprehensive Test Suite for Detectors of Design Patterns
Author :
Wegrzynowicz, Patrycja ; Stencel, Krzysztof
Author_Institution :
Software R&D Dept., NASK Res. & Acad. Comput. Network, Warsaw, Poland
fYear :
2009
fDate :
16-20 Nov. 2009
Firstpage :
103
Lastpage :
110
Abstract :
Detection of design patterns is an important part of reverse engineering. Availability of patterns provides for a better understanding of code and also makes analysis more efficient in terms of time and cost. In recent years, we have observed a continual improvement in the field of automatic detection of design patterns in source code. Existing approaches can detect a fairly broad range of design patterns, targeting both structural and behavioral aspects of patterns. However, it is not straightforward to assess and compare these approaches. There is no common ground on which to evaluate the accuracy of the detection approaches, given the existence of variants and specific code constructs used to implement a design pattern. We propose a systematic approach to constructing a comprehensive test suite for detectors of design patterns. This approach is applied to construct a test suite covering the Singleton pattern. The test suite contains many implementation variants of these patterns, along with such code constructs as method forwarding, access modifiers, and long inheritance paths. Furthermore, we use this test suite to compare three detection tools and to identify their strengths and weaknesses.
Keywords :
object-oriented methods; object-oriented programming; program testing; reverse engineering; source coding; Singleton pattern; access modifiers; automatic detection; code constructs; comprehensive test suite; design patterns detector; detection tools; forwarding method; inheritance paths; reverse engineering; source code; Automatic testing; Costs; Detectors; Documentation; Pattern analysis; Reverse engineering; Software engineering; Software systems; Software testing; System testing; design patterns; detection; test suite;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Automated Software Engineering, 2009. ASE '09. 24th IEEE/ACM International Conference on
Conference_Location :
Auckland
ISSN :
1938-4300
Print_ISBN :
978-1-4244-5259-0
Electronic_ISBN :
1938-4300
Type :
conf
DOI :
10.1109/ASE.2009.85
Filename :
5431778
Link To Document :
بازگشت