Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 274 for Reflection (0.56 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/MapCreationTester.java

       * tests can suppress it with {@code FeatureSpecificTestSuiteBuilder.suppressing()} until <a
       * href="https://bugs.openjdk.org/browse/JDK-5045147">JDK-5045147</a> is fixed.
       */
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public static Method getCreateWithNullKeyUnsupportedMethod() {
        return getMethod(MapCreationTester.class, "testCreateWithNullKeyUnsupported");
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

      }
    
      @SuppressWarnings("unused") // used by reflection
      private static class CanCreateDefault {
        @Keep
        public void foo(@Nullable HardToCreate ignored, String required) {
          checkNotNull(required);
        }
      }
    
      public void testCanCreateDefault() {
        shouldPass(new CanCreateDefault());
      }
    
      @SuppressWarnings("unused") // used by reflection
      private static class CannotCreateDefault {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 47.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/FunctionsTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public void testNulls() throws Exception {
        new ClassSanityTester().forAllPublicStaticMethods(Functions.class).testNulls();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      @AndroidIncompatible // TODO(cpovirk): ClassNotFoundException: com.google.common.base.Function
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java

                int bytesRead = notification.readBytesWireFormat(buffer, 0);
    
                // Verify the bytes read
                assertEquals(24, bytesRead);
    
                // Verify the fields were set correctly using reflection
                Field oplockLevelField = Smb2OplockBreakNotification.class.getDeclaredField("oplockLevel");
                oplockLevelField.setAccessible(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/https/HandlerTest.java

                assertNotEquals(httpsPort, httpPort);
            }
        }
    
        @Nested
        @DisplayName("Edge Cases")
        class EdgeCaseTests {
    
            @Test
            @DisplayName("Should handle reflection access to protected method")
            void testProtectedMethodAccess() throws Exception {
                // Given
                Handler testHandler = new Handler();
    
                // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/mylasta/action/FessLabelsTest.java

            FessLabels labels = new FessLabels();
            assertNotNull(labels);
            assertTrue(labels instanceof org.lastaflute.core.message.UserMessages);
        }
    
        /**
         * Test reflection access to constants
         */
        public void test_reflectionAccess() throws Exception {
            Class<?> clazz = FessLabels.class;
            Field field = clazz.getField("LABELS_LOGIN");
            assertNotNull(field);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java

    import java.util.concurrent.locks.LockSupport;
    import org.jspecify.annotations.Nullable;
    
    @GwtCompatible
    @ReflectionSupport(value = ReflectionSupport.Level.FULL)
    // Some Android 5.0.x Samsung devices have bugs in JDK reflection APIs that cause
    // getDeclaredField to throw a NoSuchFieldException when the field is definitely there.
    // Since this class only needs CAS on one field, we can avoid this bug by extending AtomicReference
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 10K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java

       * Hashtable} can suppress it with {@code FeatureSpecificTestSuiteBuilder.suppressing()}.
       */
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public static Method getMergeNullValueMethod() {
        return getMethod(MapMergeTester.class, "testMergeNullValue");
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/util/StringsTest.java

                assertDoesNotThrow(() -> {
                    java.lang.reflect.Constructor<Strings> constructor = Strings.class.getDeclaredConstructor();
                    assertTrue(java.lang.reflect.Modifier.isPrivate(constructor.getModifiers()), "Constructor should be private");
                }, "Should be able to access private constructor via reflection");
            }
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableMultimapTest.java

            .addEqualityGroup(
                ImmutableMultimap.of(1, "a", 2, "b"), ImmutableMultimap.of(2, "b", 1, "a"))
            .testEquals();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public void testNulls() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(ImmutableMultimap.class);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.8K bytes
    - Viewed (0)
Back to top