Skip to content

Instantly share code, notes, and snippets.

View filiphr's full-sized avatar

Filip Hrisafov filiphr

View GitHub Profile
@filiphr
filiphr / TypeResolverTest.java
Last active July 5, 2017 21:20 — forked from cykl/TypeResolverTest.java
Code sample to figure out how to check whether the return type of two methods are equals (including generics). See https://github.com/joel-costigliola/assertj-core/issues/1005
package cma.sandox;
import com.google.common.reflect.TypeResolver;
import org.assertj.core.api.WithAssertions;
import org.junit.Test;
import java.lang.reflect.Method;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.Arrays;