Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 318 for reflection (0.27 sec)

  1. src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java

            // Mock the handshake process to do nothing complex
            mockResponse(HTTP_OK, "OK", null, null);
    
            // Act & Assert
            assertDoesNotThrow(() -> spiedConnection.getResponseCode());
            // Use reflection to verify handshake method is called
            assertDoesNotThrow(() -> spiedConnection.getResponseCode());
            assertDoesNotThrow(() -> spiedConnection.getInputStream());
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/ds/DataStoreFactoryTest.java

            // Note: ResourceUtil.getPluginJarFiles is a static method, so we can't mock it directly
            // The test will verify the method works with the actual ResourceUtil implementation
    
            // Test with reflection to access protected method
            List<String> names = testFactory.loadDataStoreNameList();
            assertTrue(names.isEmpty() || names.size() >= 0); // Will be empty due to ResourceUtil static method
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/SmbComTransactionResponseTest.java

            }
    
            @Override
            int readDataWireFormat(byte[] buffer, int bufferIndex, int len) {
                return 0;
            }
    
            // Helper methods to access private fields using reflection
            protected void setFieldValue(String fieldName, Object value) {
                try {
                    Field field = null;
                    Class<?> clazz = this.getClass();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/StringsTest.java

      public void testLenientFormat_nullArrayVarargs() {
        assertEquals("(Object[])null", Strings.lenientFormat("%s", (Object[]) null));
      }
    
      @GwtIncompatible // GWT reflection includes less data
      public void testLenientFormat_badArgumentToString() {
        assertThat(Strings.lenientFormat("boiler %s plate", new ThrowsOnToString()))
            .matches(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 27 17:53:41 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

      }
    
      /**
       * Provides a check of whether an exception type is valid for use with {@link
       * FuturesGetChecked#getChecked(Future, Class)}, possibly using caching.
       *
       * <p>Uses reflection to gracefully fall back to when certain implementations aren't available.
       */
      private static final class GetCheckedTypeValidatorHolder {
        static final String CLASS_VALUE_VALIDATOR_NAME =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  6. cmd/admin-router.go

    // done per-"handler function registration" in the router.
    //
    // The passed in handler function must be a method of `adminAPIHandlers` for the
    // name displayed in logs and trace to be accurate. The name is extracted via
    // reflection.
    //
    // When no flags are passed, gzip compression, http tracing of headers and
    // checking of object layer availability are all enabled. Use flags to modify
    // this behavior.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Apr 16 07:34:24 UTC 2025
    - 26.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/base/PredicatesTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public void testNulls() throws Exception {
        new ClassSanityTester().forAllPublicStaticMethods(Predicates.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
    - 32.2K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

        private NullsBeforeTwo() {
          super("two"); // from TestStringSortedMapGenerator's sample keys
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public static Method getMethod(Class<?> clazz, String name) {
        try {
          return clazz.getMethod(name);
        } catch (Exception e) {
          throw new IllegalArgumentException(e);
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/EnumBiMapTest.java

        public void testSerializable() {
        SerializableTester.reserializeAndAssert(
            EnumBiMap.create(ImmutableMap.of(Currency.DOLLAR, Country.CANADA)));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public void testNulls() {
        new NullPointerTester().testAllPublicStaticMethods(EnumBiMap.class);
        new NullPointerTester()
            .testAllPublicInstanceMethods(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java

                }
    
                return calculatedLength;
            }
    
            private void setLength(int length) {
                try {
                    // Use reflection to set the protected length field
                    java.lang.reflect.Field lengthField = ServerMessageBlock2.class.getDeclaredField("length");
                    lengthField.setAccessible(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
Back to top