Here you can find the source of assertComparison(T actual, T expected)
public static <T extends Comparable<T>> boolean assertComparison(T actual, T expected)
//package com.java2s; //License from project: Apache License public class Main { public static <T extends Comparable<T>> boolean assertComparison(T actual, T expected) { boolean ret = false; if ((expected == null) && (actual == null)) { ret = true;/* w w w . ja va2 s. c om*/ } else if (expected != null) { ret = expected.compareTo(actual) == 0; } return ret; } }