public static void injectRuntimeDelegate(final RuntimeDelegate runtimeDelegate) {
try {
final Field delegateField = RuntimeDelegate.class.getDeclaredField("cachedDelegate");
delegateField.setAccessible(true);
delegateField.set(null, runtimeDelegate);
} catch (ReflectiveOperationException e) {
throw new RuntimeException(e);
}
}
TestUtils.java 文件源码
java
阅读 32
收藏 0
点赞 0
评论 0
项目:siren4javaee
作者:
评论列表
文章目录