Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testGetField (0.07 sec)

  1. 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)
Back to top