public static void doesNotContain ( @ Nullable final String textToSearch , final String substring , final Supplier < String > messageSupplier ) { if ( StringUtils . hasLength ( textToSearch ) && StringUtils . hasLength ( substring ) && textToSearch . contains ( substring ) ) { throw new IllegalArgumentException ( Assert . nullSafeGet ( messageSupplier ) ) ; } }
Assert that the given text does not contain the given substring .