Here you can find the source of assertion(boolean value)
private static void assertion(boolean value)
//package com.java2s; //License from project: Apache License public class Main { private static void assertion(boolean value) { if (!value) throw new RuntimeException("Assertion failed."); }//from w w w . jav a 2s.c om }