Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 274 for Reflection (0.17 sec)

  1. src/test/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXTest.java

    /**
     * Unit tests exercising {@link SmbComSessionSetupAndX}.  The class under test
     * contains several protected helper methods and a complex constructor
     * that branches on credential type.  These tests use reflection to call
     * protected methods and Mockito to stub collaborators.
     */
    @ExtendWith(MockitoExtension.class)
    @MockitoSettings(strictness = Strictness.LENIENT)
    public class SmbComSessionSetupAndXTest {
    
        @Mock
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/features/TesterAnnotation.java

     * be used to decide whether to apply a test to a given class-under-test.
     *
     * <p>This is needed because annotations can't implement interfaces, which is also why reflection is
     * used to extract values from the properties of the various annotations.
     *
     * @author George van den Driessche
     */
    @Target(value = {ElementType.ANNOTATION_TYPE})
    @Retention(value = RetentionPolicy.RUNTIME)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jun 14 17:55:55 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java

      /**
       * Returns {@link Method} instances for the tests that assume multisets support duplicates so that
       * the test of {@code Multisets.forSet()} can suppress them.
       */
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public static List<Method> getIteratorDuplicateInitializingMethods() {
        return asList(
            getMethod(MultisetIteratorTester.class, "testIteratorKnownOrder"),
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

          // Don't use cls.getPackage() because it does nasty things like reading
          // a file.
          String visiblePackage = Reflection.getPackageName(cls);
          ImmutableList.Builder<Method> builder = ImmutableList.builder();
          for (Class<?> type : TypeToken.of(cls).getTypes().rawTypes()) {
            if (!Reflection.getPackageName(type).equals(visiblePackage)) {
              break;
            }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/AbstractFutureState.java

            } catch (Exception // sneaky checked exception
                | Error atomicReferenceFieldUpdaterFailure) {
              // 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.
              // For these users fallback to a suboptimal implementation, based on synchronized. This
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 34.8K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/exec/CrawlerTest.java

            } catch (Exception e) {
                fail("Should not throw exception with empty map: " + e.getMessage());
            }
        }
    
        // Test getValueFromMap private method via reflection
        public void test_getValueFromMap() throws Exception {
            Method method = Crawler.class.getDeclaredMethod("getValueFromMap", Map.class, String.class, String.class);
            method.setAccessible(true);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java

       * FeatureSpecificTestSuiteBuilder.suppressing()} until <a
       * href="https://bugs.openjdk.org/browse/JDK-6570631">JDK-6570631</a> is fixed.
       */
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public static Method getSubListOriginalListSetAffectsSubListMethod() {
        return getMethod(ListSubListTester.class, "testSubList_originalListSetAffectsSubList");
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/SuppliersTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public void testSuppliersNullChecks() throws Exception {
        new ClassSanityTester()
            .setDefault(Duration.class, Duration.ofSeconds(1))
            .forAllPublicStaticMethods(Suppliers.class)
            .testNulls();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java

        }
    
        @Test
        @DisplayName("Should return correct TID from TreeConnectResponse interface")
        void testGetTid() throws Exception {
            // Given - set tree ID using reflection
            Method setTreeIdMethod = ServerMessageBlock2.class.getDeclaredMethod("setTreeId", int.class);
            setTreeIdMethod.setAccessible(true);
            setTreeIdMethod.invoke(response, 12345);
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/TreeConnectResponseTest.java

        /**
         * Helper method to set private field value using reflection
         */
        private void setPrivateField(Object obj, String fieldName, Object value) throws Exception {
            Field field = obj.getClass().getDeclaredField(fieldName);
            field.setAccessible(true);
            field.set(obj, value);
        }
    
        /**
         * Helper method to get private field value using reflection
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
Back to top