Java Assert Not Null assertNotNull(Object val)

Here you can find the source of assertNotNull(Object val)

Description

assert Not Null

License

Open Source License

Declaration

public static void assertNotNull(Object val) 

Method Source Code

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

public class Main {
    public static void assertNotNull(Object val) {
        if (val == null) {
            throw new AssertionError("val is null");
        }/*  www . j av  a 2  s. c  om*/
    }
}

Related

  1. assertNotNull(Object object, String description)
  2. assertNotNull(Object object, String message)
  3. assertNotNull(Object object, String message)
  4. assertNotNull(Object object, String message)
  5. assertNotNull(Object object, String param)
  6. assertNotNull(Object value)
  7. assertNotNull(Object... objects)
  8. assertNotNull(Object... params)
  9. assertNotNull(Object... params)