クラス RuntimeHintsPredicates

java.lang.ObjectSE
org.springframework.aot.hint.predicate.RuntimeHintsPredicates

public abstract class RuntimeHintsPredicates extends ObjectSE
指定された RuntimeHints インスタンスがリフレクション、リソース、直列化、プロキシ生成の予想される動作と一致するかどうかをテストする述語の静的ジェネレーター。

このユーティリティクラスを RuntimeHintsRegistrar で使用して、すでに存在するものに応じてヒントを条件付きで登録できます。これは、ヒントの適切な登録を確認するためのテストユーティリティとしても使用できます。

 Predicate<RuntimeHints> predicate = RuntimeHintsPredicates.reflection().onMethod(MyClass.class, "someMethod").invoke();
 assertThat(predicate).accepts(runtimeHints);
 
導入:
6.0
作成者:
Brian Clozel, Stephane Nicoll