Skip to content

aeris-consulting/catadioptre

Repository files navigation

Catadioptre

Easily work with private members when testing in Java and Kotlin

Maven Central Build Scan with Detekt

Catadioptre is a lightweight library to work with private members in Kotlin and Java using reflection.

With Catadioptre, you can:

  • read or write private and protected properties / fields,
  • execute private and protected functions / methods,
  • generate "proxy" methods at compilation-time to easily access to the private members in your tests.

Catadioptre supports variable arguments in Java and Kotlin as well as optional and named arguments as well as suspend functions in Kotlin.

Why and how to use Catadioptre?

We encourage you to read the official documentation to better understand the challenges that Catadioptre solves and how it helps you to do it.