Class Asserts


  • public final class Asserts
    extends Object
    Simple utility classes with some assertions methods.
    Since:
    1.0
    Author:
    Gurkan Erdogdu
    • Method Detail

      • assertNotNull

        public static void assertNotNull​(Object obj,
                                         String parameterName)
        Check the object is null or not
        Parameters:
        obj - null check object
        parameterName - name of parameter which may not be null
      • assertNotNull

        public static void assertNotNull​(Object obj)
        Check the object is null or not
        Parameters:
        obj - null check object
      • nullCheckForClass

        public static void nullCheckForClass​(Class<?> clazz)
        Null check for class parameter.
        Parameters:
        clazz - parameter
      • nullCheckForClass

        public static void nullCheckForClass​(Class<?> clazz,
                                             String message)
        Null check for class parameter.
        Parameters:
        clazz - parameter
      • nullCheckForMethod

        public static void nullCheckForMethod​(Method method)
        Null check for method parameter.
        Parameters:
        method - parameter