Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 299 for reflection (0.48 sec)

  1. 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();
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java

                    // Initialize response chain (also for chained query)
                    Smb2CreateResponse cr = create.initResponse(cifsContext);
    
                    // Access chained Smb2QueryDirectoryRequest via reflection
                    Smb2QueryDirectoryRequest q = (Smb2QueryDirectoryRequest) getNextOf(create);
    
                    // Provide a query response with two entries
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/reflect/Types.java

        TypeVariableImpl<D> typeVariableImpl = new TypeVariableImpl<>(genericDeclaration, name, bounds);
        @SuppressWarnings("unchecked")
        TypeVariable<D> typeVariable =
            Reflection.newProxy(
                TypeVariable.class, new TypeVariableInvocationHandler(typeVariableImpl));
        return typeVariable;
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java

        void testMaxDataCountValues(int maxDataCount) throws Exception {
            netShareEnum = new NetShareEnum(realConfig);
    
            // Set maxDataCount using reflection
            setFieldValue(netShareEnum, "maxDataCount", maxDataCount);
    
            byte[] dst = new byte[256];
            int bytesWritten = netShareEnum.writeParametersWireFormat(dst, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java

            // We can't directly test ProcessDestroyer without creating actual processes,
            // but we can test that the class exists and basic functionality
            try {
                // Use reflection to verify ProcessDestroyer class exists
                final Class<?> destroyerClass = Class.forName("org.codelibs.fess.thumbnail.impl.CommandGenerator$ProcessDestroyer");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/helper/CrawlingConfigHelperTest.java

            assertEquals("21T", crawlingConfigHelper.getDefaultConfig(ConfigType.DATA).get().getId());
        }
    
        public void test_getId() {
            // Test getId method through reflection since it's protected
            try {
                java.lang.reflect.Method getIdMethod = CrawlingConfigHelper.class.getDeclaredMethod("getId", String.class);
                getIdMethod.setAccessible(true);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 34.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/config/BaseConfigurationTest.java

            BaseConfiguration testConfig = new BaseConfiguration(false);
            byte[] customMachineId = new byte[32];
            Arrays.fill(customMachineId, (byte) 0xFF);
    
            // Use reflection to set private field
            java.lang.reflect.Field machineIdField = BaseConfiguration.class.getDeclaredField("machineId");
            machineIdField.setAccessible(true);
            machineIdField.set(testConfig, customMachineId);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        /*
         * We'd use assertThrows here, but that causes no exception to be thrown under Java 8,
         * presumably because the ThrowingRunnable lambda triggers some kind of bug in Java 8's
         * reflection implementation.
         */
        try {
          new TypeToken<T>() {};
          fail();
        } catch (IllegalStateException expected) {
          // Type variables aren't allowed.
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Sep 02 17:23:59 UTC 2025
    - 89K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        /*
         * We'd use assertThrows here, but that causes no exception to be thrown under Java 8,
         * presumably because the ThrowingRunnable lambda triggers some kind of bug in Java 8's
         * reflection implementation.
         */
        try {
          new TypeToken<T>() {};
          fail();
        } catch (IllegalStateException expected) {
          // Type variables aren't allowed.
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Sep 02 17:23:59 UTC 2025
    - 89K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/eventbus/EventBus.java

     *       complicate debugging, lead to unintentional reentrant calls, and force apps to eagerly
     *       initialize all possible subscribers at startup time.
     *   <li>It uses reflection in ways that break when code is processed by optimizers/minimizers like
     *       <a href="https://developer.android.com/studio/build/shrink-code">R8 and Proguard</a>.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 12.7K bytes
    - Viewed (0)
Back to top