public static void assertAllAreNull ( String messageIfNull , Object ... objects ) throws IllegalArgumentException { for ( Object object : objects ) { if ( object != null ) { throw new IllegalArgumentException ( messageIfNull ) ; } } }
Asserts that all of the objects are null .