Class PropertyUtils

java.lang.Object
org.testng.internal.PropertyUtils

public class PropertyUtils extends Object
Utility class for setting JavaBeans-style properties on instances.
  • Field Details

    • LOGGER

      private static final Logger LOGGER
  • Constructor Details

    • PropertyUtils

      public PropertyUtils()
  • Method Details

    • setProperty

      public static void setProperty(Object instance, String name, String value)
    • getPropertyType

      public static Class<?> getPropertyType(Class<?> instanceClass, String propertyName)
    • getPropertyDescriptor

      private static PropertyDescriptor getPropertyDescriptor(Class<?> targetClass, String propertyName)
    • setPropertyRealValue

      public static void setPropertyRealValue(Object instance, String name, Object value)