Java Assert assertNotEmpty(final String str)

Here you can find the source of assertNotEmpty(final String str)

Description

assert Not Empty

License

Open Source License

Declaration

public static boolean assertNotEmpty(final String str) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static boolean assertNotEmpty(final String str) {
        return null != str && !str.isEmpty();
    }//ww  w . jav  a  2  s . com

    public static boolean isEmpty(final String value) {
        return null == value || value.isEmpty();
    }
}

Related

  1. assertNoSlash(final String ofString)
  2. assertNotBlank(final String arg, final String message)
  3. assertNotBlank(final String value, final String exceptionMessage)
  4. assertNotBlank(final String... strings)
  5. assertNotBlankOrThrowException(final String... strings)
  6. assertNotEmpty(String string, String exceptionMessageTitle)
  7. assertNotEmpty(String value, String message)
  8. assertNotEmptyString(final String s)
  9. assertNotEquals(final Object actual, final Object expected, final String name)