Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testNewInstance2 (0.16 sec)

  1. src/test/java/org/codelibs/core/beans/impl/BeanDescImplTest.java

            assertThat((Integer) beanDesc.newInstance(10), is(10));
            assertThat((Integer) beanDesc.newInstance("10"), is(10));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testNewInstance2() throws Exception {
            final BeanDesc beanDesc = new BeanDescImpl(Integer.class);
            assertThat((Integer) beanDesc.newInstance(new BigDecimal(10)), is(10));
        }
    
        /**
         * @throws Exception
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 13.9K bytes
    - Viewed (0)
Back to top