adding a test case.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21768 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-09-17 05:53:50 +00:00
1 parent 8e048b8607
commit ea9748e152
2 files changed
+26 -4

No files matched your search

@@ -687,10 +687,9 @@ public abstract class HudsonTestCase extends TestCase {
if(pd==null) {
// field?
try {
Field f1 = lhs.getClass().getField(p);
Field f2 = rhs.getClass().getField(p);
lp = f1.get(lhs);
rp = f2.get(rhs);
Field f = lhs.getClass().getField(p);
lp = f.get(lhs);
rp = f.get(rhs);
} catch (NoSuchFieldException e) {
assertNotNull("No such property "+p+" on "+lhs.getClass(),pd);
return;