You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following unit test fails because the resolveRawArguments returns an empty array. According to the java doc i would either expect null or a filled array
public class TypeResolverTest
{
class A
{
B b;
}
class B extends HashMap<String,String>
{}
@Test
public void test()
{
Class[] resolved = TypeResolver.resolveRawArguments( B.class, A.class );
assertEquals( 2, resolved.length );
assertEquals( String.class, resolved[0] );
assertEquals( String.class, resolved[1] );
}
}
The text was updated successfully, but these errors were encountered:
Wrong use, you code should be: TypeResolver.resolveRawArguments(HashMap.class, B.class)
By the way, the second parameter of resolveRawArguments method should be a subclass, which A is not. @jhalterman close.
The following unit test fails because the resolveRawArguments returns an empty array. According to the java doc i would either expect null or a filled array
The text was updated successfully, but these errors were encountered: