assertEquals( short.class,
resolver.resolveType( "short" ) );
}
public void testResolveArrayOfPrimitiveTypes() throws Exception {
final ClassTypeResolver resolver = new ClassTypeResolver(new HashSet(), Thread.currentThread().getContextClassLoader());
assertEquals( boolean[].class,
resolver.resolveType( "boolean[]" ) );
assertEquals( double[].class,
resolver.resolveType( "double[]" ) );
assertEquals( float[].class,
resolver.resolveType( "float[]" ) );
assertEquals( int[].class,
resolver.resolveType( "int[]" ) );
assertEquals( char[].class,
resolver.resolveType( "char[]" ) );
assertEquals( long[].class,
resolver.resolveType( "long[]" ) );
assertEquals( byte[].class,
resolver.resolveType( "byte[]" ) );
assertEquals( short[].class,
resolver.resolveType( "short[]" ) );
}