ExtensionContext.publishFile() and ExtensionContext.publishDirectory() both document that the supplied file or directory name must not be null or blank.
However, AbstractExtensionContext (which is the implementation of the ExtensionContext interface) does not check if the supplied name is blank.
We should therefore revise the precondition checks to comply with the documented behavior.
ExtensionContext.publishFile()andExtensionContext.publishDirectory()both document that the supplied file or directorynamemust not benullor blank.However,
AbstractExtensionContext(which is the implementation of theExtensionContextinterface) does not check if the suppliednameis blank.We should therefore revise the precondition checks to comply with the documented behavior.