Posts tagged with junit5

  • Testing null, empty, blank

    In many cases, when you have a method that accepts a mandatory string parameter, you want to verify that the parameter contains a value that isn’t null, nor empty, not blank (i.e. consisting solely of whitespace characters). While writing the check is easy, testing it can be a bit annoying.

This site uses third party cookies from Google Analytics and Google AdSense Accept and close popup