Java Assert Null assertNull(String message, Object val)

Here you can find the source of assertNull(String message, Object val)

Description

assert Null

License

LGPL

Declaration

public static void assertNull(String message, Object val) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    public static void assertNull(String message, Object val) {
        if (message != null)
            assert val == null : message;
        else/*from   w ww. j a  va 2s. c o m*/
            assert val == null;
    }
}

Related

  1. assertNull(Object object)
  2. assertNull(Object object, String errMsg)
  3. assertNull(Object object, String message)
  4. assertNull(String message, Object object)
  5. assertNull(String message, Object object)
  6. assertNull(String string, Object obj)
  7. assertObjectNullOrIsInstance(Object obj, Class expectedType, String name)