public static TestMap of() { return new TestMap(); }
private <X> Equality testUnchecked(X a, X b, TestMap map) { if (a == null) { return b == null ? Equality.equal() : Equality.notEqual(name, "null", b.toString()); } Class<?> type = a.getClass(); @SuppressWarnings("unchecked") Test<X> test = (Test<X>) map.get(type); return test.execute(name, a, b); }
private <X> Equality testUnchecked(X a, X b, TestMap map) { if (a == null) { return b == null ? Equality.equal() : Equality.notEqual(name, "null", b.toString()); } Class<?> type = a.getClass(); @SuppressWarnings("unchecked") Test<X> test = (Test<X>) map.get(type); return test.execute(name, a, b); }
public static TestMap of() { return new TestMap(); }
public final <E> SELF using(Class<E> type, Test<E> test) { testMap.put(type, test); return self(); }
public final <E> SELF using(Class<E> type, Test<E> test) { testMap.put(type, test); return self(); }
public final <E> SELF using(Class<E> type, Test<E> test) { testMap.put(type, test); return self(); }
public final <E> SELF using(Class<E> type, Test<E> test) { testMap.put(type, test); return self(); }