Home
last modified time | relevance | path

Searched refs:SimpleEnum (Results 1 – 12 of 12) sorted by relevance

/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/jdk/
DEnumDefaultReadTest.java12 enum SimpleEnum { enum in EnumDefaultReadTest
67 _verifyOkDeserialization(r, "ZERO", SimpleEnum.class, SimpleEnum.ZERO); in testWithoutCustomFeatures()
68 _verifyOkDeserialization(r, "ONE", SimpleEnum.class, SimpleEnum.ONE); in testWithoutCustomFeatures()
69 _verifyOkDeserialization(r, "0", SimpleEnum.class, SimpleEnum.ZERO); in testWithoutCustomFeatures()
70 _verifyOkDeserialization(r, "1", SimpleEnum.class, SimpleEnum.ONE); in testWithoutCustomFeatures()
71 _verifyFailingDeserialization(r, "TWO", SimpleEnum.class); in testWithoutCustomFeatures()
72 _verifyFailingDeserialization(r, "2", SimpleEnum.class); in testWithoutCustomFeatures()
101 _verifyOkDeserialization(r, "ZERO", SimpleEnum.class, SimpleEnum.ZERO); in testWithFailOnNumbers()
102 _verifyOkDeserialization(r, "ONE", SimpleEnum.class, SimpleEnum.ONE); in testWithFailOnNumbers()
103 _verifyFailingDeserialization(r, "TWO", SimpleEnum.class); in testWithFailOnNumbers()
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/module/
DSimpleModuleTest.java35 static enum SimpleEnum { A, B; } enum in SimpleModuleTest
73 static class SimpleEnumSerializer extends StdSerializer<SimpleEnum>
75 public SimpleEnumSerializer() { super(SimpleEnum.class); } in SimpleEnumSerializer()
78 public void serialize(SimpleEnum value, JsonGenerator jgen, SerializerProvider provider) in serialize()
90 static class SimpleEnumDeserializer extends JsonDeserializer<SimpleEnum>
93 public SimpleEnum deserialize(JsonParser jp, DeserializationContext ctxt) in deserialize()
96 return SimpleEnum.valueOf(jp.getText().toUpperCase()); in deserialize()
246 assertEquals(quote("b"), mapper.writeValueAsString(SimpleEnum.B)); in testSimpleEnumSerializer()
282 mod.addDeserializer(SimpleEnum.class, new SimpleEnumDeserializer()); in testSimpleEnumDeserializer()
284 SimpleEnum result = mapper.readValue(quote("a"), SimpleEnum.class); in testSimpleEnumDeserializer()
[all …]
/external/python/pybind11/tests/
Dtest_enum.cpp75 enum SimpleEnum in TEST_SUBMODULE() enum
81 py::enum_<SimpleEnum>(m, "SimpleEnum") in TEST_SUBMODULE()
82 ….value("ONE", SimpleEnum::ONE) //NOTE: all value function calls are called with the same … in TEST_SUBMODULE()
83 .value("ONE", SimpleEnum::TWO) in TEST_SUBMODULE()
84 .value("ONE", SimpleEnum::THREE) in TEST_SUBMODULE()
/external/auto/common/src/test/java/com/google/auto/common/
DAnnotationMirrorsTest.java18 import static com.google.auto.common.AnnotationMirrorsTest.SimpleEnum.BLAH;
19 import static com.google.auto.common.AnnotationMirrorsTest.SimpleEnum.FOO;
58 enum SimpleEnum { enum in AnnotationMirrorsTest
63 SimpleEnum value(); in value()
71 SimpleEnum value() default SimpleEnum.BLAH; in value()
/external/libchrome/base/
Dtemplate_util_unittest.cc16 enum SimpleEnum { SIMPLE_ENUM }; enum
44 static_assert(internal::SupportsOstreamOperator<SimpleEnum>::value,
46 static_assert(internal::SupportsOstreamOperator<const SimpleEnum&>::value,
/external/python/apitools/apitools/base/protorpclite/
Dtest_util.py286 class SimpleEnum(messages.Enum): class in OptionalMessage
299 enum_value = messages.EnumField(SimpleEnum, 10)
305 class SimpleEnum(messages.Enum): class in RepeatedMessage
334 enum_value = messages.EnumField(SimpleEnum,
468 message.enum_value = OptionalMessage.SimpleEnum.VAL2
483 message.enum_value = OptionalMessage.SimpleEnum.VAL2
498 message.enum_value = [RepeatedMessage.SimpleEnum.VAL2,
499 RepeatedMessage.SimpleEnum.VAL1]
Ddescriptor_test.py430 test_util.OptionalMessage.SimpleEnum.VAL1),
431 descriptor.describe(test_util.OptionalMessage.SimpleEnum.VAL1))
439 descriptor.describe_enum(test_util.OptionalMessage.SimpleEnum),
440 descriptor.describe(test_util.OptionalMessage.SimpleEnum))
474 test_util.OptionalMessage.SimpleEnum.VAL1),
/external/libchrome/base/json/
Djson_value_converter_unittest.cc21 enum SimpleEnum { enum
28 SimpleEnum simple_enum;
33 static bool ParseSimpleEnum(StringPiece value, SimpleEnum* field) { in ParseSimpleEnum()
65 converter->RegisterCustomField<SimpleEnum>( in RegisterJSONConverter()
/external/apache-commons-bcel/src/test/java/org/apache/bcel/data/
DAnnotatedWithEnumClass.java21 @AnnotationEnumElement(enumval = SimpleEnum.Red)
DSimpleEnum.java21 public enum SimpleEnum { Red,Orange,Yellow,Green,Blue,Indigo,Violet } enum
DAnnotationEnumElement.java27 SimpleEnum enumval(); in enumval()
/external/protobuf/src/google/protobuf/compiler/
Dparser_unittest.cc1018 TEST_F(ParseEnumTest, SimpleEnum) { in TEST_F() argument