AuthorsG. Fraser and A. Arcuri
TitleAutomated Test Generation for Java Generics
AfilliationSoftware Engineering, Software Engineering, Software Engineering
Project(s)The Certus Centre (SFI)
StatusPublished
Publication TypeProceedings, refereed
Year of Publication2013
Conference NameSoftware Quality Days (SWQD)
Volume166
Pagination185-198
PublisherSpringer International Publishing
Place PublishedBerlin Heidelberg
ISBN Number978-3-319-03601-4
ISSN Number1865-1348
KeywordsConference
Abstract

Software testing research has resulted in effective white-box test generation techniques that can produce unit test suites achieving high code coverage. However, research prototypes usually only cover basic programming language features, thus inhibiting practical use and evaluation. One such feature are Java's generics, which have been present in the language since 2004. In Java, a generic class has type parameters and can be instantiated for different types; for example, a collection can be parameterized with the type of values it contains. To enable test generation tools to cover generics, two simple changes are required to existing approaches: First, the test generator needs to use Java's extended reflection API to retrieve the little information that remains after type erasure. Second, a simple static analysis can identify candidate classes for type parameters of generic classes. The presented techniques are implemented and evaluated in the EvoSuite test data generation tool.

DOI10.1007/978-3-319-03602-1_12
Citation KeySimula.simula.2034