Is it possible to use type-safe @Resource URLs in unit tests instead of strings? Equivalently, can you derive the end point's URL from its @Resource class?
@Aleksei Tirman [JB]’s answer to this SO thread uses
call.application.href()
but I can't access it in
testApplication
.
h
hfhbd
06/20/2024, 8:40 PM
What do you want? You can use the answer in SO, but if you want to test the endpoints with testApplication, just use the client and add the resources clients plugin.