tledkov-gridgain commented on code in PR #817:
URL: https://github.com/apache/ignite-3/pull/817#discussion_r883757246


##########
modules/core/src/test/java/org/apache/ignite/internal/testframework/IgniteTestUtils.java:
##########
@@ -164,6 +164,36 @@ public static Object getFieldValue(Object target, Class<?> 
declaredClass, String
         }
     }
 
+    /**
+     * Returns field value.
+     *
+     * @param obj target object from which to get field value ({@code null} 
for static methods)
+     * @param fieldName name of the field
+     * @return field value
+     */
+    public static Object getFieldValue(Object obj, String fieldName) {
+        Class<?> cls = obj.getClass();
+        Exception ex = null;
+
+        while (cls != Object.class) {
+            try {
+                return getFieldValue(obj, obj.getClass(), fieldName);
+            } catch (Exception ex0) {
+                cls = cls.getSuperclass();

Review Comment:
   Fixed. Move test utils method from 2.x 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to