public void test4() { Method[] methods = TestInterface.class.getMethods(); Method method4 = methods[3]; ParameterDescription pdc4 = new ParameterDescriptionImpl( 0, method4.getParameterTypes()[0], method4.getGenericParameterTypes()[0], method4.getAnnotations(), null); assertNotNull(pdc4); assertEquals(String[].class, pdc4.getParameterActualType()); }
public void test5() { Method[] methods = TestInterface.class.getMethods(); Method method5 = methods[4]; ParameterDescription pdc = new ParameterDescriptionImpl( 0, method5.getParameterTypes()[0], method5.getGenericParameterTypes()[0], method5.getAnnotations(), null); assertNotNull(pdc); assertEquals(List[].class, pdc.getParameterActualType()); }
public void test2() { Method[] methods = TestInterface.class.getMethods(); Method method2 = methods[1]; ParameterDescription pdc2 = new ParameterDescriptionImpl( 0, method2.getParameterTypes()[0], method2.getGenericParameterTypes()[0], method2.getAnnotations(), null); assertNotNull(pdc2); // FIXME: Need to chase this down with the Harmony folks. if (!"DRLVM".equals(System.getProperty("java.vm.name"))) { assertEquals(String[].class, pdc2.getParameterActualType()); } }