Computer Software
Print ISSN : 0289-6540
An Assertion Mechanism for Software Unit Testing to Remain Unaffected by Program Modification: The Mechanism to Eliminate Dependency from/to Unnecessary Objects
Masanori SAKAKIBARAKohei SAKURAISeiichi KOMIYA
Author information
JOURNAL FREE ACCESS

2009 Volume 26 Issue 1 Pages 1_127-1_138

Details
Abstract

Assertions are used for unit testing in Object-Oriented Programming. With assertions, tester compares with an expected value the result of a test execution which is obtained by referring to the object containing its result in the object being tested. Therefore, there is a problem that test classes described as testing code depend strongly on the unnecessary objects which are not of concern to unit testing. In this work we developed an assertion mechanism which traverses objects automatically in order to eliminate the dependency from/to such unnecessary objects. Furthermore, we performed experiments on open source products, and confirmed that using this assertion mechanism decreases the coupling between a test class and other classes.

Content from these authors
© Japan Society for Software Science and Technology 2009
Previous article Next article
feedback
Top