Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Symnum (0.04 sec)

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

            final BeanDesc beanDesc = BeanDescFactory.getBeanDesc(MyDto.class);
            final PropertyDesc pd = beanDesc.getPropertyDesc("myEnum");
            final MyDto dto = new MyDto();
            pd.setValue(dto, "ONE");
            assertEquals(MyEnum.ONE, dto.myEnum);
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGetBeanDesc() throws Exception {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  2. tests/test_jsonable_encoder.py

    
    def test_custom_enum_encoders():
        def custom_enum_encoder(v: Enum):
            return v.value.lower()
    
        class MyEnum(Enum):
            ENUM_VAL_1 = "ENUM_VAL_1"
    
        instance = MyEnum.ENUM_VAL_1
    
        encoded_instance = jsonable_encoder(
            instance, custom_encoder={MyEnum: custom_enum_encoder}
        )
        assert encoded_instance == custom_enum_encoder(instance)
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java

          return isSubtype(listOfEnums);
        }
    
        @TestSubtype(suppressGetSupertype = true, suppressGetSubtype = true)
        public List<Enum<? extends Enum<?>>> listOfSubEnumsIsNotSubtypeOfListOfEnums(
            List<MyEnum> listOfEnums) {
          return notSubtype(listOfEnums);
        }
    
        @TestSubtype(suppressGetSupertype = true, suppressGetSubtype = true)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 20.3K bytes
    - Viewed (0)
Back to top