👽️ Use Unsafe instead of reflection to set private field for test
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 28 Sep 2024 16:33:54 +0000 (18:33 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 28 Sep 2024 20:47:30 +0000 (22:47 +0200)
commit64d554f926bea66cf0f9221ce7f82788f9fe3f8f
treecbd0fd3d33151927c2b68409b05eee51c1ff8bfa
parent82007cf0ea73e0fdffbaf8565de5693c0ff4a68d
👽️ Use Unsafe instead of reflection to set private field for test

This feels like a gigantic step backwards. Additionally, JEP 471 already
plans to phase out the method used in here until Java 27 or so, so at
some point I will have to fix the underlying issue of the
PageMakerInteractionFactory being non-accessible for tests.
src/test/kotlin/net/pterodactylus/sone/test/TestUtils.kt
src/test/kotlin/net/pterodactylus/sone/web/page/FreenetTemplatePageTest.kt