Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 121 - 130 of 300 for Reflection (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/test/java/jcifs/dcerpc/DcerpcBindTest.java

                        "Flags should be set for first and last fragment");
    
                // Verify private fields using reflection
                Field bindingField = DcerpcBind.class.getDeclaredField("binding");
                bindingField.setAccessible(true);
                assertSame(mockBinding, bindingField.get(bindWithParams), "Binding should be set");
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 22.7K bytes
    - Click Count (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java

       * FeatureSpecificTestSuiteBuilder.suppressing()} until <a
       * href="https://bugs.openjdk.org/browse/JDK-6260652">JDK-6260652</a> is fixed.
       */
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public static Method getToArrayIsPlainObjectArrayMethod() {
        return getMethod(CollectionToArrayTester.class, "testToArray_isPlainObjectArray");
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 08 18:35:13 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb/SmbPipeInputStreamTest.java

            when(tree.isSMB2()).thenReturn(false);
            when(tree.getConfig()).thenReturn(config);
            when(config.getPid()).thenReturn(1234);
    
            // Stub send to populate the provided response instance via reflection
            Mockito.doAnswer(inv -> {
                Object resp = inv.getArgument(1);
                // Set private fields: status on SmbComTransactionResponse and available on TransPeekNamedPipeResponse
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/reflect/TypesTest.java

      }
    
      private static class WithTypeVariable {
    
        @SuppressWarnings("unused")
        <T> void withoutBound(List<T> list) {}
    
        @SuppressWarnings({
          "unused",
          /*
           * Since reflection can't tell the difference between <T> and <T extends Object>, it doesn't
           * make a ton of sense to have a separate tests for each. But having tests for each doesn't
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Feb 11 19:03:19 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  5. android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

    import junit.framework.AssertionFailedError;
    import junit.framework.TestCase;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Tests for {@link ForwardingWrapperTester}. Live in a different package to detect reflection
     * access issues, if any.
     *
     * @author Ben Yu
     */
    public class ForwardingWrapperTesterTest extends TestCase {
    
      private final ForwardingWrapperTester tester = new ForwardingWrapperTester();
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 15.7K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb/SmbEnumerationUtilTest.java

                // Assert
                assertNotNull(unwrapped);
                assertTrue(unwrapped instanceof DosFileFilter);
    
                // Verify fields preserved (via reflection since they are protected)
                var wildcardField = DosFileFilter.class.getDeclaredField("wildcard");
                wildcardField.setAccessible(true);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.1K bytes
    - Click Count (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/ClassMap.java

     * KIND, either express or implied.  See the License for the
     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.model.interpolation.reflection;
    
    import java.lang.reflect.Method;
    import java.lang.reflect.Modifier;
    import java.util.Hashtable;
    import java.util.Map;
    
    /**
     * A cache of introspection information for a specific class instance.
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 13.5K bytes
    - Click Count (0)
  8. src/test/java/jcifs/http/NtlmServletTest.java

         * @throws CIFSException
         */
        private void setupMocksForAuth() throws Exception {
            // This is a simplified way to get a transport context into the servlet.
            // A more robust solution might involve reflection or modifying the servlet for testability.
            try {
                java.lang.reflect.Field transportContextField = NtlmServlet.class.getDeclaredField("transportContext");
                transportContextField.setAccessible(true);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 21 04:51:33 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java

        }
    
        /**
         * Test that the constant-time comparison method is actually used internally.
         */
        @Test
        public void testConstantTimeMethodExists() throws Exception {
            // Use reflection to verify the constant-time method exists
            Method constantTimeMethod = NtlmPasswordAuthenticator.class.getDeclaredMethod("constantTimeEquals", char[].class, char[].class);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 11.2K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/curl/CurlTest.java

        }
    
        @Test
        public void test_ProtectedConstructor() throws Exception {
            // ## Test that protected constructor can be accessed via reflection ##
    
            // ## Act ##
            final Constructor<Curl> constructor = Curl.class.getDeclaredConstructor();
            constructor.setAccessible(true);
            final Curl instance = constructor.newInstance();
    
    Created: Sat Dec 20 09:13:53 GMT 2025
    - Last Modified: Thu Nov 20 13:34:13 GMT 2025
    - 16.3K bytes
    - Click Count (0)
Back to Top