Java tutorial
//package com.java2s; //License from project: MIT License public class Main { /** * Ensure that the given object is not null, if it is fail the test * * @param object1 * The object to test */ public static void assertNotNull(Object object1) { if (object1 == null) { throw new RuntimeException("TEST FAILS: " + object1 + " must not be null"); } } }