Here you can find the source of assertByThrowing(boolean condition, String errorMessage)
private static void assertByThrowing(boolean condition, String errorMessage)
//package com.java2s; //License from project: Open Source License public class Main { private static void assertByThrowing(boolean condition, String errorMessage) { if (!condition) { throw new RuntimeException(errorMessage); }//from ww w . j av a2s . c o m } }