Proceedings of the Institute for System Programming of the RAS
RUS  ENG    JOURNALS   PEOPLE   ORGANISATIONS   CONFERENCES   SEMINARS   VIDEO LIBRARY   PACKAGE AMSBIB  
General information
Latest issue
Archive

Search papers
Search references

RSS
Latest issue
Current issues
Archive issues
What is RSS



Proceedings of ISP RAS:
Year:
Volume:
Issue:
Page:
Find






Personal entry:
Login:
Password:
Save password
Enter
Forgotten password?
Register


Proceedings of the Institute for System Programming of the RAS, 2024, Volume 36, Issue 2, Pages 59–72
DOI: https://doi.org/10.15514/ISPRAS-2024-36(2)-5
(Mi tisp873)
 

On the automated unit tests generation for Java applications using spring framework

K. A. Shishin, I. V. Muravev, E. K. Kulikov

Saint Petersburg State University
Abstract: This paper considers the automated unit tests generation for programs written in Java using the Spring framework. Although several test generation tools for “pure” Java applications have been developed in recent decades, the features of this framework are mostly not taken into account. However, Spring is used to develop many industrial Java applications. At the same time, the presence of Spring components in the application for which the tests are generated imposes additional requirements not only on the code analysis approaches, but also on the structure of the generated tests. The main source of the information about object types and their properties is the Spring application context. The paper proposes an instrument for analyzing the application context, that in some cases allows generating test scenarios corresponding to real program executions and avoiding excessive mocking. The full initialization of the application context does not occur during this analysis. It makes the test generation safe for user data. The proposed instrument for analyzing the Spring context has been integrated into the UnitTestBot Java automatic test generation tool. We also provide examples of tests generated for real open-source projects.
Keywords: Software testing, automated unit test generation, Spring, mocking, UnitTestBot Java
Document Type: Article
Language: English
Citation: K. A. Shishin, I. V. Muravev, E. K. Kulikov, “On the automated unit tests generation for Java applications using spring framework”, Proceedings of ISP RAS, 36:2 (2024), 59–72
Citation in format AMSBIB
\Bibitem{ShiMurKul24}
\by K.~A.~Shishin, I.~V.~Muravev, E.~K.~Kulikov
\paper On the automated unit tests generation for Java applications using spring framework
\jour Proceedings of ISP RAS
\yr 2024
\vol 36
\issue 2
\pages 59--72
\mathnet{http://mi.mathnet.ru/tisp873}
\crossref{https://doi.org/10.15514/ISPRAS-2024-36(2)-5}
Linking options:
  • https://www.mathnet.ru/eng/tisp873
  • https://www.mathnet.ru/eng/tisp/v36/i2/p59
  • Citing articles in Google Scholar: Russian citations, English citations
    Related articles in Google Scholar: Russian articles, English articles
    Proceedings of the Institute for System Programming of the RAS
     
      Contact us:
     Terms of Use  Registration to the website  Logotypes © Steklov Mathematical Institute RAS, 2025