Title: A STUDY ON THE EVALUATION OF UNIT TESTING FOR ANDROID SYSTEMS
Issue Number: | Vol. 1, No. 4 |
Year of Publication: | Dec - 2011 |
Page Numbers: | 926-941 |
Authors: | Ben Sadeh, Sundar Gopalakrishnan |
Journal Name: | International Journal of New Computer Architectures and their Applications (IJNCAA) - Hong Kong |
Abstract:
Unit testing is a method for quickly assessing the building blocks of a program and for obtaining accurate error localizations. However, in order to achieve these qualities, the tests cases need to be isolated, since an external call may imply a connection to a remote database. This requirement also makes unit testing difficult to initiate for classes with outside dependencies, and consequently several approaches have been devised to facilitate unit testing of these methods. This paper focuses on the different ways of unit testing Java methods with external dependencies in an Android application. Additionally, it covers a new category of testing methodology called shadow objects. First, the study examines some of the current methods of testing. Then, it details the different ways a class with an external dependency could be unit tested. Finally, the paper presents a discussion and evaluation of the study.