Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for MyBean (0.05 sec)

  1. src/test/java/org/codelibs/core/beans/util/MyBean.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.beans.util;
    
    /**
     * @author higa
     */
    public class MyBean {
    
        /**
         *
         */
        public String aaa;
    
        /**
         *
         */
        public String bbb;
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 803 bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/beans/impl/MethodDescTest.java

        @Test
        public void testFoo() throws Exception {
            final BeanDesc beanDesc = new BeanDescImpl(MyBean.class);
            final MethodDesc foo = beanDesc.getMethodDesc("foo");
            assertThat(foo, is(notNullValue()));
            assertThat(foo.getBeanDesc(), is(sameInstance(beanDesc)));
            assertThat(foo.getMethod(), is(MyBean.class.getMethod("foo")));
            assertThat(foo.getMethodName(), is("foo"));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java

            final MyBean src = new MyBean();
            src.aaa = "aaa";
            final MyBean dest = BeanUtil.copyBeanToNewBean(src, MyBean.class);
            assertThat(dest.aaa, is("aaa"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testCopy_beanToNewMap() throws Exception {
            final MyBean src = new MyBean();
            src.aaa = "aaa";
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/beans/impl/ConstructorDescTest.java

            assertThat(ctor.getParameterTypes().length, is(1));
            assertThat(ctor.isPublic(), is(true));
            final MyBean myBean = ctor.newInstance("hoge");
            assertThat(myBean, is(notNullValue()));
            assertThat(myBean.s, is("hoge"));
        }
    
        /**
         */
        public static class MyBean {
            /** */
            public String s;
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/beans/impl/PropertyDescImplTest.java

            final MyBean myBean = new MyBean();
            final BeanDesc beanDesc = new BeanDescImpl(MyBean.class);
            final PropertyDesc propDesc = beanDesc.getPropertyDesc("aaa");
            propDesc.setValue(myBean, null);
        }
    
        /**
         * @throws Exception
         */
        @Test(expected = IllegalPropertyRuntimeException.class)
        public void testSetValue_notWritableWithField() throws Exception {
            final MyBean myBean = new MyBean();
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/beans/impl/FieldDescImplTest.java

            assertThat(parameterizedClassDesc.isParameterizedClass(), is(true));
            assertThat(parameterizedClassDesc.getRawClass(), is(sameClass(Class.class)));
            final MyBean myBean = new MyBean();
            aaa.setFieldValue(myBean, String.class);
            assertThat(aaa.getFieldValue(myBean), is(sameClass(String.class)));
        }
    
        /**
         * @throws Exception
         */
        @Test(expected = FieldNotStaticRuntimeException.class)
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/beans/factory/BeanDescFactoryTest.java

            final BeanDesc beanDesc = BeanDescFactory.getBeanDesc(MyBean.class);
            assertThat(BeanDescFactory.getBeanDesc(MyBean.class), is(sameInstance(beanDesc)));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testClear() throws Exception {
            final BeanDesc beanDesc = BeanDescFactory.getBeanDesc(MyBean.class);
            BeanDescFactory.clear();
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/beans/impl/BeanDescImplTest.java

            /**
             * @return Boolean
             */
            public Boolean isFff() {
                return null;
            }
    
            /**
             * @param hhh
             * @return MyBean
             */
            public MyBean setHhh(final String hhh) {
                return this;
            }
    
            /**
             *
             */
            public void getIii() {
            }
    
            /**
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 13.9K bytes
    - Viewed (0)
Back to top