@@ -0,0 +1,2615 @@
+/*%0A * Copyright (C) 2008 feilong%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *         http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.feilong.core.bean.beanutiltest;%0A%0Aimport static com.feilong.core.bean.ConvertUtil.toArray;%0A%0Aimport java.lang.reflect.InvocationTargetException;%0Aimport java.lang.reflect.Method;%0A%0Aimport org.junit.Test;%0A%0Aimport com.feilong.core.bean.BeanUtil;%0Aimport com.feilong.core.lang.reflect.MethodUtil;%0Aimport com.feilong.store.member.Person;%0A%0A/**%0A * The Class BeanUtilCopyPropertiesTest.%0A *%0A * @author %3Ca href=%22http://feitianbenyue.iteye.com/%22%3Efeilong%3C/a%3E%0A */%0Apublic class GetPropertyExceptionTest%7B%0A%0A    /**%0A     * Test bean util null to bean.%0A     * %0A     * @throws SecurityException%0A     * @throws NoSuchMethodException%0A     * @throws InvocationTargetException%0A     * @throws IllegalArgumentException%0A     * @throws IllegalAccessException%0A     */%0A    @Test(expected = NullPointerException.class)%0A    @SuppressWarnings(%22static-method%22)%0A    public void testBeanUtilNullToBean() throws NoSuchMethodException,SecurityException,IllegalAccessException,IllegalArgumentException,%0A                    InvocationTargetException%7B%0A%0A        // MethodUtil.invokeStaticMethod(BeanUtil.class, %22getProperty%22, null, %22name%22);%0A        MethodUtil.invokeStaticMethod(BeanUtil.class, %22getProperty%22, toArray(null, %22name%22), toArray(Object.class, String.class));%0A%0A    %7D%0A%0A    /**%0A     * Test bean util null from bean.%0A     * %0A     * @throws SecurityException%0A     * @throws NoSuchMethodException%0A     * @throws InvocationTargetException%0A     * @throws IllegalArgumentException%0A     * @throws IllegalAccessException%0A     */%0A    //@Test(expected = NullPointerException.class)%0A    @Test%0A    @SuppressWarnings(%22static-method%22)%0A    public void testBeanUtilNullFromBean() throws NoSuchMethodException,SecurityException,IllegalAccessException,IllegalArgumentException,%0A                    InvocationTargetException%7B%0A        Method declaredMethod = BeanUtil.class.getDeclaredMethod(%22getProperty%22, Object.class, String.class);%0A        declaredMethod.setAccessible(true);%0A%0A        declaredMethod.invoke(BeanUtil.class, new Person(), %22name11%22);%0A    %7D%0A%7D%0A

update javadoc