Please use this identifier to cite or link to this item: https://elib.vku.udn.vn/handle/123456789/6210
Title: STUBLIB4UT: A Stub Generation Method for Library Functions in Unit Testing Java Projects
Authors: Tran, Hoang Viet
Nguyen, Minh Quan
Do, Thi Trang
Pham, Ngoc Hung
Keywords: Automated testing
Automated stubbing
Java projects
Unit testing
Library functions
Issue Date: Jan-2026
Publisher: Springer Nature
Abstract: Automated stubbing for unit testing is crucial for achieving high code coverage in Java projects. This paper introduces a Concolic-based method called STUBLIB4UT, an enhancement of the AS4UT, designed to stub method invocations during unit testing. The core idea is to replace method invocations with mock variables during symbolic execution, using Java reflection to retrieve stub information. This approach enhances code coverage, particularly when stubbing library method invocations. Experimental results demonstrate that STUBLIB4UT surpasses existing AS4UT methods in both code coverage and memory usage when the unit under test includes library method invocation statements. The paper also discusses the proposed method in detail.
Description: Lecture Notes in Networks and Systems (LNNS,volume 1581); The 14th Conference on Information Technology and Its Applications (CITA 2025) ; pp: 331-342
URI: https://doi.org/10.1007/978-3-032-00972-2_25
https://elib.vku.udn.vn/handle/123456789/6210
ISBN: 978-3-032-00971-5 (p)
978-3-032-00972-2 (e)
Appears in Collections:CITA 2025 (International)

Files in This Item:

 Sign in to read



Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.