Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 OnApplicationEvent ,它在服务器启动时执行一些花哨的预定代码。我想要做的是至少为我的一些单元测试禁用/覆盖这个调用。我在 Micronaut 应用程序中工作。
我怎样才能做到这一点?