@misc{8718, keywords = {Conference}, author = {Gordon Fraser and Andrea Arcuri}, title = {Automated Test Generation for Java Generics}, 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{\textquoteright}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{\textquoteright}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.}, year = {2013}, journal = {Software Quality Days (SWQD)}, volume = {166}, pages = {185-198}, publisher = {Springer International Publishing}, address = {Berlin Heidelberg}, issn = {1865-1348}, isbn = {978-3-319-03601-4}, doi = {10.1007/978-3-319-03602-1_12}, }