Class StringTester


  • public final class StringTester
    extends java.lang.Object
    This tester provides some special assert methods for strings to simplify JUnit testing.
    Since:
    1.2.10-YEARS (24.01.2012)
    Author:
    oboehm
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void assertEmpty​(java.lang.String s)
      Check if the given string is null or empty.
      static void assertNotEmpty​(java.lang.String s)
      Check if the given string is not null and not empty.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • assertNotEmpty

        public static void assertNotEmpty​(java.lang.String s)
        Check if the given string is not null and not empty.
        Parameters:
        s - the string
      • assertEmpty

        public static void assertEmpty​(java.lang.String s)
        Check if the given string is null or empty. This method was introduced for symmetric reason to assertNotEmpty(String).
        Parameters:
        s - the s