Package io.qameta.allure.util
Class ObjectUtils
java.lang.Object
io.qameta.allure.util.ObjectUtils
Utility methods for safe object string conversion.
Use these helpers from integrations and attachment builders when values may be arrays, maps, null, or objects whose toString() method can fail.
-
Method Summary
-
Method Details
-
toString
Converts and returns the string. Pretty prints arrays and guards against failingtoString()implementations.- Parameters:
object- the object to convert- Returns:
- a string representation of this object
-
mapToString
Returns the map to string.- Parameters:
map- the map- Returns:
- the map to string
-