1

How can a JavaBean be tested for deep not null?

I have a JavaBean with about 400 properties. MyBatis fetches the data from a database and uses a Result Map to initialize the JavaBean. What I'm looking to do is test the Result Map for correctness. The first step I'm considering is to test for deep not null.

4

1 回答 1

1

使用 java.beans.Introspector 获取 BeanInfo 和 getPropertyDescriptors()。

于 2013-02-02T21:02:08.490 回答