Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 249 for reflectLen (0.28 sec)

  1. guava-tests/test/com/google/common/collect/IteratorsTest.java

      public void testPartition_view() {
        List<Integer> list = asList(1, 2);
        Iterator<List<Integer>> partitions = Iterators.partition(list.iterator(), 1);
    
        // Changes before the partition is retrieved are reflected
        list.set(0, 3);
        List<Integer> first = partitions.next();
    
        // Changes after are not
        list.set(0, 4);
    
        assertEquals(ImmutableList.of(3), first);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 54.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

            assertThrows(NullPointerException.class, () -> raf.writeChars(null));
            assertThrows(NullPointerException.class, () -> raf.writeUTF(null));
        }
    
        // Small reflection helpers to access private fields for interaction verification
        private static Object getField(Object target, String name) {
            try {
                var f = target.getClass().getDeclaredField(name);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ArrayTable.java

       *
       * <p>Subsequent table changes will not modify the array, and vice versa.
       *
       * @param valueClass class of values stored in the returned array
       */
      @GwtIncompatible // reflection
      public @Nullable V[][] toArray(Class<V> valueClass) {
        @SuppressWarnings("unchecked") // TODO: safe?
        @Nullable V[][] copy =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 13 19:39:21 UTC 2025
    - 26.8K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/job/SuggestJobTest.java

            public TestFessConfig() {
                super();
                // Initialize the properties to avoid NullPointerException
                try {
                    // Use reflection to initialize the internal properties structure
                    java.lang.reflect.Field propField =
                            org.lastaflute.core.direction.ObjectiveConfig.class.getDeclaredField("_javaPropertiesResult");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  5. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

            override fun checkServerTrusted(
              chain: Array<out X509Certificate>?,
              authType: String?,
            ) {
              withoutHostCalled = true
            }
    
            // called by Android via reflection in X509TrustManagerExtensions
            @Suppress("unused", "UNUSED_PARAMETER")
            fun checkServerTrusted(
              chain: Array<out X509Certificate>,
              authType: String,
              hostname: String,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 14:12:28 UTC 2025
    - 29K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

        return ImmutableSetMultimap.<String, Integer>builder()
            .put("foo", 1)
            .put("bar", 2)
            .put("foo", 3)
            .build();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public void testNulls() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(ImmutableSetMultimap.class);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

    import static org.mockito.Mockito.doThrow;
    import static org.mockito.Mockito.timeout;
    import static org.mockito.Mockito.verify;
    
    import com.google.common.collect.ImmutableList;
    import com.google.common.reflect.Reflection;
    import com.google.common.truth.FailureStrategy;
    import com.google.common.truth.StandardSubjectBuilder;
    import com.google.common.util.concurrent.ClosingFuture.AsyncClosingCallable;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 75.4K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/helper/CrawlingInfoHelperTest.java

            assertNotNull(result);
            assertEquals(currentTime + 5000, result.getTime());
        }
    
        public void test_getExpiredTime() {
            // Test via reflection since method is protected
            try {
                java.lang.reflect.Method getExpiredTimeMethod = CrawlingInfoHelper.class.getDeclaredMethod("getExpiredTime", int.class);
                getExpiredTimeMethod.setAccessible(true);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        Multimap<String, Integer> multimap = ImmutableListMultimap.of();
        assertSame(multimap, SerializableTester.reserialize(multimap));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public void testNulls() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(ImmutableListMultimap.class);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java

                SMBUtil.writeInt8(512, buffer, 48);
                SMBUtil.writeInt4(0x01, buffer, 56);
    
                // When
                response.readBytesWireFormat(buffer, 0);
    
                // Then - use reflection to verify private fields
                Field closeFlagsField = Smb2CloseResponse.class.getDeclaredField("closeFlags");
                closeFlagsField.setAccessible(true);
                assertEquals(1, closeFlagsField.get(response));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 26.9K bytes
    - Viewed (0)
Back to top