提交 2e6c22e9 编写于 作者: K kohsuke

detect the problem before PropertyUtils.getPropertyDescriptor does.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@17230 71c3de6d-444a-0410-be80-ed276b4c234a
上级 b241bf48
......@@ -578,6 +578,8 @@ public abstract class HudsonTestCase extends TestCase {
* @since 1.297
*/
public void assertEqualBeans(Object lhs, Object rhs, String properties) throws Exception {
assertNotNull("lhs is null",lhs);
assertNotNull("rhs is null",rhs);
for (String p : properties.split(",")) {
PropertyDescriptor pd = PropertyUtils.getPropertyDescriptor(lhs, p);
Object lp,rp;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册