Here you can find the source of assertEquals(int i1, int i2)
public static void assertEquals(int i1, int i2)
//package com.java2s; // Licensed under the Apache License, Version 2.0 (the "License"); public class Main { /**//from w w w .j av a 2 s . c om * Throws a runtime exception if i1 != i2. */ public static void assertEquals(int i1, int i2) { if (i1 != i2) { throw new RuntimeException("assert " + i1 + " == " + i2); } } }