Arcuri, A. and Fraser, G. (2016) Java Enterprise Edition Support in Search-Based JUnit Test Generation. In: Deb, K. and Sarro, F., (eds.) Search Based Software Engineering. International Symposium on Search Based Software Engineering, October 8-10, 2016, Raleigh, NC, USA. Lecture Notes in Computer Science, 9962 . Springer , pp. 3-17. ISBN 978-3-319-47105-1
Abstract
Many different techniques and tools for automated unit test generation target the Java programming languages due to its popularity. However, a lot of Java’s popularity is due to its usage to develop enterprise applications with frameworks such as Java Enterprise Edition (JEE) or Spring. These frameworks pose challenges to the automatic generation of JUnit tests. In particular, code units (“beans”) are handled by external web containers (e.g., WildFly and GlassFish). Without considering how web containers initialize these beans, automatically generated unit tests would not represent valid scenarios and would be of little use. For example, common issues of bean initialization are dependency injection, database connection, and JNDI bean lookup. In this paper, we extend the EvoSuite search-based JUnit test generation tool to provide initial support for JEE applications. Experiments on 247 classes (the JBoss EAP tutorial examples) reveal an increase in code coverage, and demonstrate that our techniques prevent the generation of useless tests (e.g., tests where dependencies are not injected).
Metadata
Item Type: | Proceedings Paper |
---|---|
Authors/Creators: |
|
Editors: |
|
Copyright, Publisher and Additional Information: | © 2016 Springer. This is an author produced version of a paper subsequently published in Search Based Software Engineering. Uploaded in accordance with the publisher's self-archiving policy. |
Keywords: | Java Enterprise Edition (JEE); Search-based testing; Automated unit test generation; Database |
Dates: |
|
Institution: | The University of Sheffield |
Academic Units: | The University of Sheffield > Faculty of Engineering (Sheffield) > Department of Computer Science (Sheffield) |
Depositing User: | Symplectic Sheffield |
Date Deposited: | 21 Mar 2017 10:57 |
Last Modified: | 11 Aug 2017 11:07 |
Published Version: | https://doi.org/10.1007/978-3-319-47106-8_1 |
Status: | Published |
Publisher: | Springer |
Series Name: | Lecture Notes in Computer Science |
Refereed: | Yes |
Identification Number: | 10.1007/978-3-319-47106-8_1 |
Related URLs: | |
Open Archives Initiative ID (OAI ID): | oai:eprints.whiterose.ac.uk:113441 |