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.
JavaBeanをnullではなくdeepについてテストするにはどうすればよいですか?
約400のプロパティを持つJavaBeanがあります。MyBatisはデータベースからデータをフェッチし、結果マップを使用してJavaBeanを初期化します。私が探しているのは、結果マップが正しいかどうかをテストすることです。私が検討している最初のステップは、nullではなくdeepをテストすることです。
BeanInfo および getPropertyDescriptors() を取得するには、java.beans.Introspector を使用します。