Java Assert Null assertNull(Object object, String errMsg)

Here you can find the source of assertNull(Object object, String errMsg)

Description

assert Null

License

Open Source License

Declaration

public static void assertNull(Object object, String errMsg) 

Method Source Code

//package com.java2s;

public class Main {

    public static void assertNull(Object object, String errMsg) {

        if (object != null) {

            throw new RuntimeException(errMsg);
        }/*from w  w  w  . j  av a 2  s.com*/
    }
}

Related

  1. assertNull(final Object value, final String name)
  2. assertNull(Object o)
  3. assertNull(Object obj)
  4. assertNull(Object obj)
  5. assertNull(Object object)
  6. assertNull(Object object, String message)
  7. assertNull(String message, Object object)
  8. assertNull(String message, Object object)
  9. assertNull(String message, Object val)