Class AssertUtils


  • public class AssertUtils
    extends Object
    Utility class to perform assertion on method parameters.
    Since:
    4.5
    Author:
    Allard Buijze
    • Method Detail

      • assertParameter

        public static void assertParameter​(boolean condition,
                                           String message)
        Assert that the given condition is true, or otherwise throws an IllegalArgumentException with given message.
        Parameters:
        condition - The condition to validate
        message - The message in the exception