Home
last modified time | relevance | path

Searched refs:testEnum (Results 1 – 9 of 9) sorted by relevance

/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/builders/
DEnumDeclarationBuildersTest.java40 EnumDeclaration testEnum = cu.addEnum("test"); in testAddImplements() local
41 testEnum.addImplementedType(Function.class); in testAddImplements()
45 assertEquals(1, testEnum.getImplementedTypes().size()); in testAddImplements()
46 … assertEquals(Function.class.getSimpleName(), testEnum.getImplementedTypes(0).getNameAsString()); in testAddImplements()
51 EnumDeclaration testEnum = cu.addEnum("test"); in testAddEnumConstant() local
52 testEnum.addEnumConstant("MY_ENUM_CONSTANT"); in testAddEnumConstant()
53 assertEquals(1, testEnum.getEntries().size()); in testAddEnumConstant()
54 assertEquals("MY_ENUM_CONSTANT", testEnum.getEntry(0).getNameAsString()); in testAddEnumConstant()
DFieldDeclarationBuildersTest.java40 private EnumDeclaration testEnum = cu.addEnum("testEnum"); field in FieldDeclarationBuildersTest
81 testEnum.addPrivateField(int.class, "myField").createGetter(); in testCreateGetterInEnum()
82 assertEquals(2, testEnum.getMembers().size()); in testCreateGetterInEnum()
83 assertEquals(MethodDeclaration.class, testEnum.getMember(1).getClass()); in testCreateGetterInEnum()
84 List<MethodDeclaration> methodsWithName = testEnum.getMethodsByName("getMyField"); in testCreateGetterInEnum()
94 testEnum.addPrivateField(int.class, "myField").createSetter(); in testCreateSetterInEnum()
95 assertEquals(2, testEnum.getMembers().size()); in testCreateSetterInEnum()
96 assertEquals(MethodDeclaration.class, testEnum.getMember(1).getClass()); in testCreateSetterInEnum()
97 List<MethodDeclaration> methodsWithName = testEnum.getMethodsByName("setMyField"); in testCreateSetterInEnum()
/external/clang/test/SemaObjCXX/
Dboxing-illegal-types.mm53 void testEnum(void *p) { function
/external/caliper/caliper/src/test/java/com/google/caliper/memory/
DObjectGraphMeasurerTest.java41 @Test public void testEnum() { in testEnum() method in ObjectGraphMeasurerTest
/external/clang/test/SemaObjC/
Dboxing-illegal.m53 void testEnum(void *p) { function
/external/clang/test/Analysis/
Dinline.cpp243 void testEnum() { in testEnum() function
/external/protobuf/python/google/protobuf/internal/
Dunknown_fields_test.py173 def testEnum(self): member in UnknownFieldsAccessorsTest
Ddescriptor_pool_test.py589 def testEnum(self): member in AddDescriptorTest
/external/clang/test/FixIt/
Dformat.m232 void testEnum() { function