Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for isAnnotationPresent (0.34 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt

      }
    
      @SuppressLint("NewApi")
      private fun ExtensionContext.isFlaky(): Boolean =
        (testMethod.orElseGet { null }?.isAnnotationPresent(Flaky::class.java) == true) ||
          (testClass.orElseGet { null }?.isAnnotationPresent(Flaky::class.java) == true)
    
      @Synchronized private fun logEvents() {
        // Will be ineffective if test overrides the listener
        synchronized(clientEventsList) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri May 30 21:28:20 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/https/HandlerTest.java

        class DeprecationTests {
    
            @Test
            @DisplayName("Handler class should be deprecated")
            void testDeprecatedAnnotation() {
                // Then
                assertTrue(Handler.class.isAnnotationPresent(Deprecated.class));
            }
        }
    
        @Nested
        @DisplayName("Integration Tests")
        class IntegrationTests {
    
            @Test
            @DisplayName("Should support NTLM over HTTPS")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/timer/SystemMonitorTargetTest.java

        }
    
        public void test_class_has_proper_annotations() {
            // Verify the class doesn't have any inappropriate annotations
            assertFalse("Class should not be deprecated", SystemMonitorTarget.class.isAnnotationPresent(Deprecated.class));
        }
    
        public void test_inherited_methods_from_monitor_target() throws Exception {
            // Test that inherited methods are accessible
            Method appendMethod = null;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/timer/HotThreadMonitorTargetTest.java

        }
    
        public void test_class_has_proper_annotations() {
            // Verify the class doesn't have any inappropriate annotations
            assertFalse("Class should not be deprecated", HotThreadMonitorTarget.class.isAnnotationPresent(Deprecated.class));
        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/reflect/Parameter.java

        return type;
      }
    
      /** Returns the {@link Invokable} that declares this parameter. */
      public Invokable<?, ?> getDeclaringInvokable() {
        return declaration;
      }
    
      @Override
      public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) {
        return getAnnotation(annotationType) != null;
      }
    
      @Override
      public <A extends Annotation> @Nullable A getAnnotation(Class<A> annotationType) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/reflect/SubtypeTester.java

              @Override
              public int compare(Method a, Method b) {
                return a.getName().compareTo(b.getName());
              }
            });
        for (Method method : methods) {
          if (method.isAnnotationPresent(TestSubtype.class)) {
            method.setAccessible(true);
            SubtypeTester tester = (SubtypeTester) clone();
            tester.method = method;
            method.invoke(tester, new Object[] {null});
          }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/reflect/Invokable.java

      public static <T> Invokable<T, T> from(Constructor<T> constructor) {
        return new ConstructorInvokable<T>(constructor);
      }
    
      @Override
      public final boolean isAnnotationPresent(Class<? extends Annotation> annotationClass) {
        return accessibleObject.isAnnotationPresent(annotationClass);
      }
    
      @Override
      public final <A extends Annotation> @Nullable A getAnnotation(Class<A> annotationClass) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 18.4K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java

               * We avoid reflecting on NullMarked because its @Target(..., MODULE) causes problems
               * under JDK 8.
               */
              if (!(a instanceof NullMarked)
                  && a.annotationType().isAnnotationPresent(TesterAnnotation.class)) {
                annotations.add(a);
              }
            }
            annotations = unmodifiableList(annotations);
            annotationCache.put(classOrMethod, annotations);
          }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

      static {
        ImmutableMap.Builder<Class<?>, Method> builder = ImmutableMap.builder();
        for (Method method : FreshValueGenerator.class.getDeclaredMethods()) {
          if (method.isAnnotationPresent(Generates.class)) {
            builder.put(method.getReturnType(), method);
          }
        }
        GENERATORS = builder.buildOrThrow();
      }
    
      private static final ImmutableMap<Class<?>, Method> EMPTY_GENERATORS;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 28.7K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

      static {
        ImmutableMap.Builder<Class<?>, Method> builder = ImmutableMap.builder();
        for (Method method : FreshValueGenerator.class.getDeclaredMethods()) {
          if (method.isAnnotationPresent(Generates.class)) {
            builder.put(method.getReturnType(), method);
          }
        }
        GENERATORS = builder.buildOrThrow();
      }
    
      private static final ImmutableMap<Class<?>, Method> EMPTY_GENERATORS;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 28.1K bytes
    - Viewed (0)
Back to top