Here you can find the source of assertEqualsAny(Object obj1, Object[] objects, String errMsg)
public static void assertEqualsAny(Object obj1, Object[] objects, String errMsg)
//package com.java2s; public class Main { public static void assertEqualsAny(Object obj1, Object[] objects, String errMsg) { if (null == objects) { throw new RuntimeException(errMsg); }/*from ww w . j a v a 2 s. c o m*/ for (Object obj2 : objects) { if (obj1 == null) { if (obj2 == null) { return; } continue; } if (obj1.equals(obj2)) { return; } } throw new RuntimeException(errMsg); } }