- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testGetField (0.09 sec)
-
guava-tests/test/com/google/common/base/EnumsTest.java
private @interface ExampleAnnotation {} private enum AnEnum { @ExampleAnnotation FOO, BAR } @J2ktIncompatible @GwtIncompatible // reflection public void testGetField() { Field foo = Enums.getField(AnEnum.FOO); assertEquals("FOO", foo.getName()); assertTrue(foo.isAnnotationPresent(ExampleAnnotation.class)); Field bar = Enums.getField(AnEnum.BAR);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed May 29 16:29:37 UTC 2024 - 8.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/ClassUtilTest.java
ClassUtil.getConstructor(ClassUtilTest.class, Integer.class); } /** * */ @Test(expected = NoSuchFieldRuntimeException.class) public void testGetField() { ClassUtil.getField(getClass(), "aaa"); } /** * */ @Test public void testGetSimpleClassName() {
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 6.2K bytes - Viewed (0)