提交 87109bd7 编写于 作者: K kohsuke

property value being null is OK in comparison.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@36017 71c3de6d-444a-0410-be80-ed276b4c234a
上级 401c06aa
......@@ -1015,6 +1015,10 @@ public abstract class HudsonTestCase extends TestCase implements RootAction {
* via {@link DataBoundConstructor}
*/
public void assertEqualDataBoundBeans(Object lhs, Object rhs) throws Exception {
if (lhs==null && rhs==null) return;
if (lhs==null) fail("lhs is null while rhs="+rhs);
if (rhs==null) fail("rhs is null while lhs="+rhs);
Constructor<?> lc = findDataBoundConstructor(lhs.getClass());
Constructor<?> rc = findDataBoundConstructor(rhs.getClass());
assertEquals("Data bound constructor mismatch. Different type?",lc,rc);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册