Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.0.0-alpha1
-
None
-
Reviewed
Description
GenericTestUtils.assertExceptionContains calls Exception.getMessage(), followed by msg.contains().
This will NPE for an exception with a null message, such as NPE.
- it should call toString()
- and do an assertNotNull on the result in case some subclass does something very bad
- and for safety, check the asser
Attachments
Attachments
Issue Links
- is depended upon by
-
HADOOP-13105 Support timeouts in LDAP queries in LdapGroupsMapping.
-
- Resolved
-
- relates to
-
HADOOP-12514 Make static fields in GenericTestUtils for assertExceptionContains() package-private and final
-
- Resolved
-