Enhancing Unit Tests in Refactored Java Programs

Anna Derezińska, Olgierd Sobieraj

2023

Abstract

Refactoring provides systematic changes to program code in order to improve its quality. These changes could also require modifications of unit tests associated with a refactored program. Developer environments assist with many code refactoring transformations, which also support some modifications of the tests. Two popular environments for Java programs have been found to be unable to update these tests for all refactoring in a satisfactory way. The flaws in refactoring, the adaptation of the tests after refactoring, and possible improvements were discussed. A tool extension has been introduced to integrate with a refactoring in the Eclipse environment and maintain the corresponding tests. For selected refactorings, additional test cases could also be created to increase code coverage and improve the testing of a refactored program. Experiments have been conducted to evaluate the proposed solutions and verify their limitations.

Download


Paper Citation


in Harvard Style

Derezińska A. and Sobieraj O. (2023). Enhancing Unit Tests in Refactored Java Programs. In Proceedings of the 18th International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE, ISBN 978-989-758-647-7, SciTePress, pages 734-741. DOI: 10.5220/0011997800003464


in Bibtex Style

@conference{enase23,
author={Anna Derezińska and Olgierd Sobieraj},
title={Enhancing Unit Tests in Refactored Java Programs},
booktitle={Proceedings of the 18th International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE,},
year={2023},
pages={734-741},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0011997800003464},
isbn={978-989-758-647-7},
}


in EndNote Style

TY - CONF

JO - Proceedings of the 18th International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE,
TI - Enhancing Unit Tests in Refactored Java Programs
SN - 978-989-758-647-7
AU - Derezińska A.
AU - Sobieraj O.
PY - 2023
SP - 734
EP - 741
DO - 10.5220/0011997800003464
PB - SciTePress