A Java Testing Framework Without Reflection

Lorenzo Bettini

2023

Abstract

Java reflection allows a program to inspect the structure of objects at run-time and provides a powerful mechanism to achieve many interesting dynamic features in several Java frameworks. However, reflection breaks the static type safety properties of Java programs and introduces a run-time overhead; thus, it might be better to avoid reflection when possible. In this paper, we present a novel Java testing framework where reflection is never used: we implement the framework only with the Object-Oriented and functional programming mechanisms provided by Java. We will show that implementing and using such a framework is easy, and we avoid the run-time overhead of reflection. Our framework can be used with existing testing libraries and is meant to be extendable.

Download


Paper Citation


in Harvard Style

Bettini L. (2023). A Java Testing Framework Without Reflection. In Proceedings of the 18th International Conference on Software Technologies - Volume 1: ICSOFT; ISBN 978-989-758-665-1, SciTePress, pages 369-376. DOI: 10.5220/0012082800003538


in Bibtex Style

@conference{icsoft23,
author={Lorenzo Bettini},
title={A Java Testing Framework Without Reflection},
booktitle={Proceedings of the 18th International Conference on Software Technologies - Volume 1: ICSOFT},
year={2023},
pages={369-376},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0012082800003538},
isbn={978-989-758-665-1},
}


in EndNote Style

TY - CONF

JO - Proceedings of the 18th International Conference on Software Technologies - Volume 1: ICSOFT
TI - A Java Testing Framework Without Reflection
SN - 978-989-758-665-1
AU - Bettini L.
PY - 2023
SP - 369
EP - 376
DO - 10.5220/0012082800003538
PB - SciTePress